Re: Creating A File To Be Written/Read From
- Posted by bernie Dec 14, 2008
- 1142 views
Ok Guys,
I've been going over the help files about creating a file to be written to and read from, but I'm a bit lost. I know "r" is for read, and "rb" is for a binary file, and I know the "wb" is for writing to a binary file, but I'm a bit confused. How would I make a file that had a extension of .sav, I realize I would use the "wb" for the function, but how exactly would I go about coding that?
Andy:
There are only two types of files binary and text.
The .xxx known as the extent is use just so a system knows
What program to use to run or use it.
On windows you associate certain file extentions to a certain program.
For example if a file ends in .txt then windows will open the file
with a text editor or .exw is run by exw.exe.
A file can have any extent type that you want as long as it is run by
a program that knows how to access it ( binary or text )
Some extents have special mean to the operating system like .exe .com .bat etc.
Bernie