Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C++ (http://www.programmingforums.org/forum15.html)
-   -   fopen (http://www.programmingforums.org/showthread.php?t=15283)

starbeam Feb 28th, 2008 11:43 PM

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.

Infinite Recursion Feb 28th, 2008 11:59 PM

Re: fopen
 
Look into using fstream. Google "C++ fstream".

Ancient Dragon Feb 29th, 2008 12:40 AM

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


All times are GMT -5. The time now is 4:16 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC