![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jan 2008
Posts: 10
Rep Power: 0
![]() |
fopen
I am having to write a program that opens a text file called test.txt and take the information in that file make changes to it and save the canges in a new text file called change.txt
I think I need to use fopen but I am not really sure about how I would go about using that. Everything I try to read about fopen just gets me more lost then I already am. |
|
|
|
|
|
#2 |
|
Programming Guru
![]() ![]() ![]() |
Re: fopen
Look into using fstream. Google "C++ fstream".
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#3 |
|
PFO God In Training
![]() Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 598
Rep Power: 4
![]() |
Re: fopen
fopen() is intended for C, not C++, although it can be used in c++ but there are a lot easier ways to do it. Take Infinite's advice and use fstream object.
Here is one of several tutorials |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| fopen | jazz | C | 9 | Jul 19th, 2006 7:43 PM |
| Compiling Maverik 6.2 (from C) | megamind5005 | C | 16 | May 3rd, 2006 6:41 PM |
| Can't open .REG files with fopen. | Stevo | C++ | 2 | Mar 24th, 2005 5:56 PM |