Thread: what format

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

    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
    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, 06: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