what format

This is a discussion on what format within the C Programming forums, part of the General Programming Boards category; i print data in console with format printf("\b\b\b\b%3d%%",data); if i want to write data into file what format i would ...

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    11

    what format

    i print data in console with format

    printf("\b\b\b\b%3d%%",data);






    if i want to write data into file what format i would use ?
    Code:
    FILE *fout = fopen("file1.txt", "w");
              fprintf(fout, "WhatFormatHere ",data); // what format here ?

  2. #2
    ZuK
    ZuK is offline
    Registered User
    Join Date
    Aug 2005
    Location
    Austria
    Posts
    1,990
    printf and fprintf take the same kind of format string.
    Kurt

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. GradeInfo
    By kirksson in forum C Programming
    Replies: 23
    Last Post: 07-16-2008, 03:27 PM
  2. function returning hour in either 12 or 24 hour format
    By stanlvw in forum C Programming
    Replies: 4
    Last Post: 01-01-2008, 05:02 AM
  3. Compression/Decompression Wave File and MP3
    By cindy_16051988 in forum Projects and Job Recruitment
    Replies: 51
    Last Post: 04-29-2006, 06:25 AM
  4. Seeking Format Advice
    By PsychoBrat in forum Game Programming
    Replies: 3
    Last Post: 10-05-2005, 05:41 AM
  5. Can't Format C
    By caroundw5h in forum Tech Board
    Replies: 40
    Last Post: 04-26-2004, 09:57 AM

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