Thread: print miltiple characters on same line using fprintf

  1. #1
    Registered User
    Join Date
    Nov 2014
    Posts
    3

    print miltiple characters on same line using fprintf

    I'm new to C and was wondering if it was possible to print multiple characters to the same file using the fprintf function provided in one of the C standard libraries?

  2. #2
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    Yes - "fprintf()" can print a formatted string ("multiple characters") to a file.

    If you've used "printf()" to print text to the screen, you can do the same thing with "fprintf()" to a file.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to print number of characters per line
    By Slyvester Ping in forum C Programming
    Replies: 25
    Last Post: 03-30-2012, 03:11 AM
  2. FSCANF/FPRINTF Skip Line and Print
    By Ditrik in forum C Programming
    Replies: 7
    Last Post: 01-08-2012, 12:43 PM
  3. how to open files and print line by line in shell
    By omega666 in forum Linux Programming
    Replies: 4
    Last Post: 04-15-2011, 04:54 PM
  4. Diffuculty with 2D arrays and print,fprintf
    By Melinnd in forum C Programming
    Replies: 5
    Last Post: 03-10-2010, 02:45 PM
  5. fprintf help ,my print outs wont line up
    By plivermo in forum C Programming
    Replies: 2
    Last Post: 08-15-2001, 09:39 AM