Best place to start (I/O question)...

This is a discussion on Best place to start (I/O question)... within the C Programming forums, part of the General Programming Boards category; I am inputting a file and outputting this file in new modified format. This i can do but was wondering ...

  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    12

    Question Best place to start (I/O question)...

    I am inputting a file and outputting this file in new modified format. This i can do but was wondering if its possible to output the file and have the file name be identical to the input file name with addition of a number of my choosing or something..

    So is it possible and where would be the best place to start - should i be looking at strings?

    Still new at C..

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    Presumably, if you have the input filename stored somewhere (and you should, since it seems like you're getting the filename from the user?) then you can relatively easily do what you want to get an output filename.

  3. #3
    Registered User
    Join Date
    Oct 2008
    Location
    TX
    Posts
    2,058
    take a look at the manpage of mkstemp()

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. question: i/o data form .txt or .xls files ??
    By camelman in forum C++ Programming
    Replies: 21
    Last Post: 11-17-2007, 03:48 PM
  2. Question about file I/O from a newbie
    By henrik in forum C Programming
    Replies: 4
    Last Post: 11-13-2007, 12:48 AM
  3. Question regarding File I/O
    By mhenderson in forum C Programming
    Replies: 4
    Last Post: 08-03-2006, 01:46 PM
  4. A place to start.
    By Grellin in forum Game Programming
    Replies: 0
    Last Post: 10-14-2001, 12:49 PM
  5. Where is a good place to start?!
    By bobthefish3 in forum Game Programming
    Replies: 1
    Last Post: 10-09-2001, 12:28 PM

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