I see , so you are using the old C sytle Method for handling files (which is the way it seems to be with most of the Microsoft-made stuff)<br><br>just to see if this helps any the c++ method is shown as so.<br>#include <fstream.h> (omit .h for standard if it works for you)<br><br>ofstream outfile; //use ofstream to creat output pointer<br>ifstream infile; //use ifstream to create file in<br><br>for an output to file<br>can be easy as<br><br>outfile.open("filename",ios:

ut);<br><br>Other ios:: you can use to define the type of opening<br><br>ios::app The function performs a seek to the end of file. When new bytes are written to the file, they are always appended to the end, even if the position is moved with the ostream::seekp function.<br><br><br>ios::ate The function performs a seek to the end of file. When the first new byte is written to the file, it is appended to the end, but when subsequent bytes are written, they are written to the current position.<br><br><br>ios::in The file is opened for input. The original file (if it exists) will not be truncated.<br><br><br>ios:

ut The file is opened for output.<br><br><br>ios::trunc If the file already exists, its contents are discarded. This mode is implied if ios:

ut is specified, and ios::ate, ios::app, and ios:in are not specified.<br><br><br>ios::nocreate If the file does not already exist, the function fails.<br><br><br>ios::noreplace If the file already exists, the function fails.<br><br><br>ios::binary Opens the file in binary mode (the default is text mode).<br>Note that there is no ios::in or ios:

ut default mode for fstream objects. You must specify both modes if your fstream object must both read and write files.<br><br>you can combine these types using ¦<br>like ios::binary ¦ ios:

ut<br><br>from there if it was sucessful to output is easy as<br>outfile<<"something";<br>of course you may want to put binary data out, in which you use <br>.put for single byte output<br>and .write for a block of bytes output<br><br>same with file input, only .get, or .read, and will use << operator as well<br><br>to close just use .close, check your MSDN for further information on fstream. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href=
</a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML, ASP(somewhat), QBasic(least i didnt start with COBOL)