Jump to content

Recommended Posts

Posted (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 by johnmcloud
Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...