Thread: sending output to a file from the command line...

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    40

    sending output to a file from the command line...

    ...ok I am running some program from the command line...this is someone elses code which I am using...I really do not want to attempt to change the code since I did not write it...how can I direct the output which shows up on my screen to a file??

    ...I tried: programname.exe inputfile (this is how it runs) << outputfile

    this did not work...obviously...how do you direct the output to somewhere else without adjusting the code??

    ...thank you a million...
    ..."GSXR1300"...

  2. #2
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    Is this the kind of thing you're looking for?

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    40
    ...exactly......thank you so..
    ..."GSXR1300"...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Base converter libary
    By cdonlan in forum C++ Programming
    Replies: 22
    Last Post: 05-15-2005, 01:11 AM
  2. simulate Grep command in Unix using C
    By laxmi in forum C Programming
    Replies: 6
    Last Post: 05-10-2002, 04:10 PM
  3. what does this mean to you?
    By pkananen in forum C++ Programming
    Replies: 8
    Last Post: 02-04-2002, 03:58 PM
  4. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 02:58 AM
  5. Simple File Creation Algorithm
    By muffin in forum C Programming
    Replies: 13
    Last Post: 08-24-2001, 03:28 PM