print output problem

This is a discussion on print output problem within the C Programming forums, part of the General Programming Boards category; Please somebody help me........ I am trying to print a data to a output file by command fprintf (file_pointer, "%d ...

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

    Question print output problem

    Please somebody help me........

    I am trying to print a data to a output file by command

    fprintf (file_pointer, "%d \t %4.2f \t %4.2f \t 0 \t 0 \t 0 \t %4.2f\n", k,x,y,ang);

    what i need is to print it in .csv file with difference column (that is why i use \t command). when i run the program, it will not print it at difference column.

    It work ok when i print it to .xls file.

    may i know how can i do it to print it at difference column in .csv file?

    Thanks

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Wotsit has all you need.

    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 12
    Last Post: 10-16-2008, 12:07 PM
  2. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  3. Print Preview problem
    By MarkookraM in forum Windows Programming
    Replies: 4
    Last Post: 09-24-2006, 10:13 AM
  4. Problem with program output
    By progrookie in forum C++ Programming
    Replies: 7
    Last Post: 03-23-2006, 01:58 PM
  5. tricky output problem, dont understand
    By panfilero in forum C Programming
    Replies: 6
    Last Post: 11-11-2005, 11:30 PM

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