fstream
Storing NUL characters (ASCII 0)
I\'ve created a program in C++ that prompts the user for a filename and for the requested filesize. The program checks if the requested filesize is bigger than the actual filesize and then adds null c[详细]
2023-01-18 07:17 分类:问答Printing char pointer in C - I keep getting bad formatting
I am reading a line from a file containing the names of people, first line contains names of males, and seconds line contains names of females. Then I want to store these names in two arrays, one for[详细]
2023-01-17 21:23 分类:问答unrecognized type in a function call
I am trying to print into a file in C++ and for some reason I keep getting this weird error: error C2061: syntax error : identifier[详细]
2023-01-14 17:41 分类:问答win32 c++ fstream wide argument
See link for what I\'m talking about. I want to use point 1 in the link and #define tfopen _wfopen #define _T(s) L##s[详细]
2023-01-11 13:55 分类:问答std::fstream will not open current process's file, but open() will?
I am attempting to open the current process\'s executable file for read-write operations (I have additional data attached t开发者_开发问答o the executable), however std::fstream will not open the file[详细]
2023-01-10 12:34 分类:问答C++ ifstream UTF8 first characters
Why does a file saved as UTF8 (in Notepad++) have this character in the beginning of the fstream I opened to it in my c++ program?[详细]
2023-01-08 14:20 分类:问答What permissions does a file written with fstream have?
Suppose I create a file for writing like this: std::ofstream my_file(\"filename\", std::ios_base::out | std::ios_base::trunc);[详细]
2023-01-06 04:03 分类:问答Incorrect data input with fstream
I tried to read in data from a text file using fstream but got wrong data. ifstream fin (\"C:\\\\Users\\\\rEgonicS\\\\Documents\\\\test.in\");[详细]
2023-01-04 14:20 分类:问答How to count lines of a file in C++?
开发者_JAVA技巧How can I count lines using the standard classes, fstream and ifstream?How about this :-[详细]
2023-01-03 19:36 分类:问答Why do I get corrupt output on my file?
I have a simple program which I have compiled in both MinGW and Visual C++ 2008 Express, and both give an output file larger than 88200.When I set s = 0, 开发者_开发问答both programs work as expected.[详细]
2023-01-02 23:47 分类:问答