johnmcloud Posted January 2, 2012 Posted January 2, 2012 (edited) Hi guys, i don't now if it possible, but i have to copy the contenent of a binary file to a txt. Noiw i'm using a hex editor and save everytime to a txt I have try to do: $input=FileOpen("input",16) $output=FileOpen("output",17) $data=FileRead($input) FileWrite($output,$data) With no success, some advice? Thanks for support EDIT: For now seems work, if i have problem i'll post in this thread Edited January 2, 2012 by johnmcloud
kylomas Posted January 2, 2012 Posted January 2, 2012 johnmcloud,Just a comment...I always check the return codes from file functions...no suprises later...and you are appending to the output file...kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill
johnmcloud Posted January 2, 2012 Author Posted January 2, 2012 Thanks for suggestion, but i don't have error and sometime the binary seems corrupted, but i think is a software problem
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now