![]() |
|
#1
|
||||
|
||||
Easy Question C++ 5.0He is an easy one for yall, but because I am a newbee I don't know how to do it.
I know you can remove a file by simply saying remove("file.ext") the question is how do you create a file I tried create("file.ext") that did not work just wondering. Thanks for the help ~Ronald |
|
#2
|
|||
|
|||
|
If you try & open a file which doesn't exist, it should be automatically created for you.
GF |
|
#3
|
||||
|
||||
Re:Here is my code. It does not create the file out.txt
fstream bye("out.txt"); bye.open("out.txt"); Thanks for the help Sincerely, Ronald No replies found. |
|
#4
|
||||
|
||||
refstream bye("out.txt",ios:: out);
never mind, I got it |
Recent GIDBlog
Developing GUIs with wxPython (Part 4) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| video editing question | Kris | Computer Software Forum - Windows | 8 | 13-Apr-2005 19:22 |
| a C input question.. | tmike | C Programming Language | 2 | 19-Sep-2003 03:39 |
| a C input question | tmike | C Programming Language | 1 | 16-Sep-2003 03:31 |
| a noobish compiler question | Charunks | C++ Forum | 5 | 03-Sep-2003 03:18 |
| AVI Joiner, MPEG Joiner, RM Joiner, all is in Easy Video Joiner | SmartHero | Computer Software Forum - Windows | 2 | 08-Mar-2003 03:51 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The