Search:

Type: Posts; User: genyue

Search: Search took 0.00 seconds.

  1. Replies
    10
    Views
    3,381

    Let's say the file has a 10 MB filesize. Using...

    Let's say the file has a 10 MB filesize. Using ifstream or fgets will be faster in your opinion?
  2. Replies
    10
    Views
    3,381

    ofstream writefile("M:/bbb.txt"); if...

    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...
  3. Replies
    10
    Views
    3,381

    Yes, I understand that Windows uses CRLF as the...

    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...
  4. Replies
    10
    Views
    3,381

    May I know where the extra CR came from? ...

    May I know where the extra CR came from?

    Sorry, but I'm rather new to programming.
  5. Replies
    10
    Views
    3,381

    Regarding fstream

    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...
Results 1 to 5 of 5