06-11-2007 08:19 PM
06-11-2007 08:26 PM
06-11-2007 11:30 PM - edited 06-11-2007 11:30 PM
Opening a file does not do anything with the contents of the file, It just reserves the file for use and gives you a file refnum so you can use lowlevelfile I/O on it with the rest of the code. Maybe you should follow it with a read operation perhaps? 😉
Or you could just read the entire file as one long string, then look at it to see if you can discern a pattern.
The file extension (.bin, .txt) does not necessarliy mean anything useful. You can name a binary file abc.txt and a text file DEF.bin. While you're at it, you could even name the file aaa.zzz or leave out the extension entirely.
In windows, the file extension is used to define default applications to be used to open the file if you double-click it. So often, the file extension can give some clue. It does not mean that changing the extension miraculously converts a file onto something else. Take a text file and rename it to an .avi extension. Now windows will probably try to use media player to try to open it and will most likely fail. 😉
If the file is not too big, attach it here and we'll give it a try.
Message Edited by altenbach on 06-11-2007 09:31 PM