![]() |
| | #1 |
| Registered User Join Date: Aug 2001
Posts: 7
| Can anyone help me with the following problem: How can I get my program to do the whole 'ifstream and ofstream' but instead of it writting the file to the same directory as the actual program but to a specified directory, for example make a new file in "c:\games" If anyone can help it would be great Thanx StaticMan |
| Staticman is offline | |
| | #2 |
| Registered User Join Date: Sep 2001
Posts: 412
| You can specify the full pathname for a file. Just do something like this: ofstream outStream("c:\\games\\myfile.txt"); |
| The V. is offline | |
| | #3 |
| Registered User Join Date: Aug 2001
Posts: 7
| Thanx, it's working now. I mean, thanx ALOT!!! You saved me. Staticman ![]() |
| Staticman is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Drieving from iostream | Thantos | C++ Programming | 8 | 06-23-2004 04:57 PM |
| iostream & hex? | dmlx90 | C++ Programming | 0 | 05-22-2002 11:51 PM |
| DJGPP Doesn't include IOSTREAM!!!!!!!!!!! | Frenchfry164 | Game Programming | 12 | 10-27-2001 12:27 PM |
| << in iostream | badman | C++ Programming | 8 | 10-18-2001 10:19 PM |
| Is there a C iostream? | Khisanth | C Programming | 1 | 09-05-2001 12:34 AM |