File Input/Output Functions
I''m just curious if the good ol'' fprintf() and fscanf(), etc, functions will work with windows in a... happy way.
Or are there specific windows or standard C++ functions meant to do this?
Thanks :]
- Goblin
"A woodchuck would chuck as much wood as a woodchuck could if a woodchuck could chuck wood. Deal."
- The Goblin (madgob@aol.com)
Windos has its own functions lread() lwrite() ReadFile() and so on. I´d recommed using those in windows but I´m not sure does Ansi C I/O work properly.
I´m on my way to Linux
I´m on my way to Linux
The good old file I/O functions should work file, Goblin. I use them in Windows all the time.
-Ironblayde
Aeon Software
-Ironblayde
Aeon Software
"Your superior intellect is no match for our puny weapons!"
They work fine - I actually think they call the Windows API functions (when running on Windows of course). There''s no reason to use Windows'' own functions since they are not portable (which the standard ANSI C/C++ functions are).
I'm reminded of the day my daughter came in, looked over my shoulder at some Perl 4 code, and said, "What is that, swearing?" - Larry Wall
I use the old DOS funcs too.
In Windows, they''re provided for compatibility but all they do is eventually call the Win32 API functions.
========
Smidge
www.smidge-tech.co.uk
========
In Windows, they''re provided for compatibility but all they do is eventually call the Win32 API functions.
========
Smidge
www.smidge-tech.co.uk
========
--Mr Smidge
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement