Thread: Carriage Return Line Feeds

  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, 06:57 PM
  2. help again with scrolling without wrapping
    By Dukefrukem in forum C Programming
    Replies: 8
    Last Post: 09-21-2007, 12: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-20-2003, 11:20 PM