Stephen Turner wrote:

> Is there anyone who knows about how files are stored on disk in Windows?
>
> At the moment, analog on Windows stops processing logfiles if a CTRL-Z
> (ASCII 26) character is reached, because this signifies end-of-file for
> a text file. Sometimes logfiles get some junk in and then the file can be
> terminated prematurely.
>
> Because of this, I am considering opening files as binary rather than as
> text on Windows. I can cope with the CRLF -> LF conversion, but what I
> don't know is whether this will have any other undesirable side effects.
> In particular, will I miss some genuine ends-of-files and start reading past
> the end?
>
> Anyone know about this stuff, or know how I can find out?
>

Hmmm.... I suppose that all depends on the c library used to compile and how IT
determines the end of a binary file. Properly, if you open a file as binary and
process if until eof, then the system should not let you process beyond the end
of it. I've never had a problem of reading beyond an end of file on a Windows
system, but I've never use Micros*fts Visual C Run Time Library.

As far as I know the system and CRTL should properly report and end of file
whether you open and binary or text mode no matter what the actual fiel type is
on the system.

If you want me to test some stuff I've got a Windows NT system and MS Visual C++
6.0 to compile it with.

--
Jeremy Wadsack
OutQuest Magazine
a Wadsack-Allen publication


--------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe analog-help" in the main BODY OF THE MESSAGE.
--------------------------------------------------------------------

Reply via email to