fstream
boost::Serialize VS std::fstream
Hey so i guess i\'m a little confused on the purpose of boost::serialize: Having to add a boost::serialize function to every class you plan to save seems to kind of defeat the purpose of t开发者_JAV[详细]
2023-03-24 08:30 分类:问答How do I use fstream to write to a file above the executable's directory in C++?
开发者_运维百科I\'m trying to write to a file that is not in the directory that the executable is in; I also want it to work no matter where the executable is (I believe that would rule out using \"..[详细]
2023-03-24 05:18 分类:问答Why is failbit set when eof is found on read?
I\'ve read that <fstream> predates <exception>. Ignoring the fact that exceptions on fstream aren\'t very informative, I have the following question:[详细]
2023-03-21 21:48 分类:问答Can't write to file in a loop containing sleep()
The essence of my problem is that I can\'t write to a file in a loop with sleep(). If I have the following code:[详细]
2023-03-19 14:20 分类:问答Anagram generator for C++ (not using STL)
I am trying to create an anagram solver just using a very basic, procedural appro开发者_如何学Pythonach. I am finding out that I probably should have done this using classes, but now it is too late an[详细]
2023-03-17 14:38 分类:问答Opening Unicode filenames in windows from DOS 8.3 filenames
Can I generate a 8.3 filename for a unicode filename and use that ASCII string of char\'s to open an fstream in Windows?[详细]
2023-03-15 02:42 分类:问答Proper choice of file stream objects
Application uses RapidXML to edit XML file. Editing is not automated and takes place occasionally: XML content is displayed in GUI and user performs some actions which change XML. Each change must be[详细]
2023-03-14 16:16 分类:问答"0xC0000005: Access violation" While using fstream
I know there are quite a few questions concerning access violations, but I have read a lot and still can\'t seem to crack this one. I\'m translating this code from java to c++ and am far less experien[详细]
2023-03-14 06:56 分类:问答Confused with fstream and pointers
I would like to write a function which takes an fstream, processes it, and fills information in a struct I supply in the second argument.[详细]
2023-03-14 01:10 分类:问答What is the correct way to output hex data to a file?
I\'ve read about [ostream] << hex << 0x[hex value], but I have some questions about it (1) I defined my file stream, output, to be a hex output file stream, using output.open(\"BWhite.bmp[详细]
2023-03-12 23:07 分类:问答