Re: [Dev-C++] problem writing data to file
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2005-02-10 23:42:14
|
Note that fscanf is for reading, not writing. It is also a very dangerous function to use, since reading strings with it have a tendancy to result in buffer overflows ;) /Per W On Wed, 9 Feb 2005, Siva Chandra wrote: > > If you are interested in making a text file then > fprintf and fscanf are the functions which you should > be using. Also, if it is really a binary file that you > are interested in creating, then use "wb" instead of > just "w". |