~NJ Grandmaster Cheater Supreme
Reputation: 0
Joined: 09 Mar 2007 Posts: 1417 Location: sitting outside of the forum
|
Posted: Sat Nov 15, 2008 4:46 am Post subject: [Delphi] Blockread Untyped File |
|
|
Hi everyone,
I've been trying to figure out a solution to my problem for hours now and I'm really quite annoyed at this.
The problem is that I have a file which has a few null characters in it. That is, when I open it in a text editor the file has a few null characters. I know this because my text editor displays null characters nicely for me as "NULL".
Anyway, in Delphi, I wish to open this file (as an untyped file) and BlockRead some stuff out of it. The data in the file is mixed in around the null characters. So for example, my file might look like:
| Code: | | This is NULL a NULL string. NULL |
What I need to do is to somehow read the full content of this file without being terminated on the first NULL character or any other NULL characters that appear except for the last NULL character.
Any ideas?
_________________
|
|