Carriage Return Line Feeds

This is a discussion on Carriage Return Line Feeds within the C Programming forums, part of the General Programming Boards category; How can I attach a carriage return line feed to my C code so that when I look at the ...

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    1

    Cool Carriage Return Line Feeds

    How can I attach a carriage return line feed to my C code so that when I look at the file that is produced by this code I can distinguish between sentences?

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    247
    write and read to a text file as you would to the display

    fprintf(f_ptr, "%s\t%s\n", name, address);

    fprintf will write to file as to display...

    fscanf(f_ptr, "%s\t%s\n", name, address);

    fscanf will read the tab and new line but discard them and file pointer moves to next line.
    hoping to be certified (programming in c)
    here's the news - I'm officially certified.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C or C++
    By AcerN30 in forum Game Programming
    Replies: 41
    Last Post: 05-30-2008, 07:57 PM
  2. help again with scrolling without wrapping
    By Dukefrukem in forum C Programming
    Replies: 8
    Last Post: 09-21-2007, 01:48 PM
  3. Why only 32x32? (OpenGL) [Please help]
    By Queatrix in forum Game Programming
    Replies: 2
    Last Post: 01-23-2006, 02:39 PM
  4. C++ FTP class won't work
    By lord mazdak in forum C++ Programming
    Replies: 8
    Last Post: 12-18-2005, 07:57 AM
  5. string class errors
    By CodeMonkey in forum C++ Programming
    Replies: 13
    Last Post: 07-21-2003, 12:20 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21