Print new line from String to file

Discussion in 'C Programming' started by meendar, Sep 14, 2007.

  1. meendar

    meendar Guest

    Hi,

    I have an string which is to be appended to some file, if i need
    inserting newline within the string what should i do with the String?
    i.e..
    char *c ="This is first line \n
    This is second line \n
     
    meendar, Sep 14, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. keto
    Replies:
    0
    Views:
    979
  2. meendar

    Print new line from String to file

    meendar, Sep 14, 2007, in forum: C Programming
    Replies:
    2
    Views:
    271
    meendar
    Sep 14, 2007
  3. David Cournapeau

    print a vs print '%s' % a vs print '%f' a

    David Cournapeau, Dec 30, 2008, in forum: Python
    Replies:
    0
    Views:
    366
    David Cournapeau
    Dec 30, 2008
  4. scad
    Replies:
    23
    Views:
    1,182
    Alf P. Steinbach
    May 17, 2009
  5. Janus Bor
    Replies:
    6
    Views:
    110
    Dave Bass
    Jul 16, 2008
Loading...

Share This Page