std.file.read || writefln

Jarrett Billingsley kb3ctd2 at yahoo.com
Sat Jun 17 15:38:08 PDT 2006


"MM" <MM_member at pathlink.com> wrote in message 
news:e71o47$c4v$1 at digitaldaemon.com...

> Somehow my last post got lost... here it is again :)
> I wanted to read a file without having to put the whole thing in mem.. Or 
> doen't
> read do this?
> If there is some way to read a file byte for byte how do I know 
> end_of_file?
> (I also didn't recieve the registration email from the docwiki... I'll try 
> that
> again too, although the problem is already corrected :)

Use std.stream.File, or std.stream.BufferedFile.  To see if you're at the 
end of the file, use the .eof() method for either of those. 





More information about the Digitalmars-d-learn mailing list