Search:

Type: Posts; User: automagician

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    46,621

    Alright, is there a way I can write to a text...

    Alright, is there a way I can write to a text file, so it is actually on a newline when I open it in textpad? instead of just have the newline character appended to the first line? Because I need to...
  2. Replies
    7
    Views
    46,621

    Actually it could be because I am looking at the...

    Actually it could be because I am looking at the file in notepad, because when I open it in word, it opens on different lines
  3. Replies
    7
    Views
    46,621

    fp = fopen(DATAFILE, "a+"); fprintf(fp, "\n");...

    fp = fopen(DATAFILE, "a+");

    fprintf(fp, "\n");
    fprintf(fp, "Emp# ");
    fprintf(fp, "%d", emp.eNum);
    fprintf(fp, " ");
    fprintf(fp, "| Name: ");
    fprintf(fp, emp.fName);
    fprintf(fp, " ");...
  4. Replies
    7
    Views
    46,621

    See that is what I thought too, but that doesn't...

    See that is what I thought too, but that doesn't work, it still just appends to the same line in the file.
  5. Replies
    7
    Views
    46,621

    Newline writing to a file

    If I am writing data to a .txt file, how can I get it to append to a newline instead of append to the first line?

    Thanks in advance!
Results 1 to 5 of 5