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

  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,336
    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,059
    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, 12:46 PM
  4. A place to start.
    By Grellin in forum Game Programming
    Replies: 0
    Last Post: 10-14-2001, 11:49 AM
  5. Where is a good place to start?!
    By bobthefish3 in forum Game Programming
    Replies: 1
    Last Post: 10-09-2001, 11:28 AM