Creating Files

This is a discussion on Creating Files within the C++ Programming forums, part of the General Programming Boards category; In C++, what would I need to write in order to have a batch file written to a certain directory? ...

  1. #1
    Covenent Killer
    Join Date
    Jul 2005
    Posts
    26

    Creating Files

    In C++, what would I need to write in order to have a batch file written to a certain directory? Like, the program would write a batch file in a folder on my desktop for example.

  2. #2
    Registered User mrafcho001's Avatar
    Join Date
    Jan 2005
    Posts
    483

  3. #3
    Covenent Killer
    Join Date
    Jul 2005
    Posts
    26
    O.k., I understand writing to a file now. I know there is a way to CREATE a new file, and i will research on it, but it would help to get help...

  4. #4
    Covenent Killer
    Join Date
    Jul 2005
    Posts
    26
    oh, never mind... DUH! thanks mrafcho001! i went through the tutorials and never knew what the ofstream was used for till now...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Multiple Cpp Files
    By w4ck0z in forum C++ Programming
    Replies: 5
    Last Post: 11-14-2005, 02:41 PM
  2. creating multiple files
    By lime in forum C Programming
    Replies: 8
    Last Post: 01-01-2004, 02:55 PM
  3. Creating text files
    By Crash1322 in forum C++ Programming
    Replies: 4
    Last Post: 12-15-2003, 09:55 PM
  4. I Need To Know Some Things That I Can Put Into A Batch File
    By TheRealNapster in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 10-20-2003, 09:12 PM
  5. reinserting htm files into chm help files
    By verb in forum Windows Programming
    Replies: 0
    Last Post: 02-15-2002, 09:35 AM

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