Advertisement

win32 File I/O question

Started by March 28, 2000 08:03 PM
12 comments, last by Void 24 years, 8 months ago
Actually, I believe that if you open the files in Wordpad instead of Notepad, it''ll get rid of the boxes for you. Of course if you really need to use Notepad (or just hate Wordpad) then that doesn''t help much.
Yes.. I personlly dislike wordpad.. takes too long to load..

but then I wonder why the HFILE handle (Window) is interpreted different from the FILE handle (C) when both are from VC++
Advertisement
An HFILE is a handle to a Windows file. You access them with Windows API functions.

A FILE is an ANSI C file structure (possibly K&R as well, I''d have to check). You access them with C library functions.

They are two very different beasts even though both are available through VC++.

Though if you used fopen() in binary mode to create a FILE * and used fwrite to output a string (as compared to fprintf) you''d get the same problem.
I see..

If the handle is in text mode, the carriage returned will be replaced with a carriage_return and linefeed while byte mode it doesn''t.

So....I guess it is postprocessing the file then..

Thanks for the help there..

This topic is closed to new replies.

Advertisement