writing a file in binary mode?

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by scurrier.

Is there a way to open a file in binary mode for write?
this way you can protect your data?

what i need to do is create a file with data in it and that no one can just load in any text editor and i can update through the web.

Thanks
Sean

P.S
The new version 3.40 is awsome Fred keep up the great work
any idea on when the 3D commands will be implamented? Being able to load a 3ds file would be great or a .X file.
Just an idea you might want to look into is setting up a section on the main web site to accept donation from credit cards or checks.
thanks again
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Danilo.

CreateFile() + WriteLong(), WriteByte(), Writeword(), ...its plain binary

See Help for File Library.

cya,
...Danilo

(registered PureBasic user)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> what i need to do is create a file with data in it and that no one
> can just load in any text editor

Anyone can load any file into a hex editor (http://www.kibria.de/frhed.html)
and modify your data that way, so don't get too concerned about trying
to stop them....


PB - Registered PureBasic Coder
Post Reply