Let's say the file has a 10 MB filesize. Using ifstream or fgets will be faster in your opinion?
Type: Posts; User: genyue
Let's say the file has a 10 MB filesize. Using ifstream or fgets will be faster in your opinion?
ofstream writefile("M:/bbb.txt");
if (writefile.is_open()) {
writefile << filebuffer;
writefile.close();
system("M:/bbb.txt");
}
If its the operator<< that added CR to CRLF, then removing...
Yes, I understand that Windows uses CRLF as the end of line character, but may I know exactly which part of the code that does that?
-----------
If anyone have any method that you feel that...
May I know where the extra CR came from?
Sorry, but I'm rather new to programming.
CR - carriage return
LF - line feed
In "cpp.properties", any new line is set as CRLF, but when the text document has been written to "bbb.txt", CRCRLF appears in "bbb.txt" instead of CRLF. Can...