Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Manipulating File Data
Index -> Programming, C++ -> C++ Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Army_Hermet6312




PostPosted: Wed Nov 19, 2008 11:27 am   Post subject: Manipulating File Data

the compiler i'm using is VC++ 6

i am making a program that reads information from a file, what i'm wondering is if there is any way that i can overwrite data in that file.

for example if there is a 1 in a txt file could i erase that and put a 2?

thanks Very Happy
Sponsor
Sponsor
Sponsor
sponsor
S_Grimm




PostPosted: Wed Nov 19, 2008 11:30 am   Post subject: RE:Manipulating File Data

you'd have to scan the document, find the numbers and have a bunch of if statements that say to replace it. There is a tutorial around here somewhere on doing that.......
btiffin




PostPosted: Wed Nov 19, 2008 3:19 pm   Post subject: RE:Manipulating File Data

Yes. No. Depends. Wink

Check out http://www.cplusplus.com/doc/tutorial/files.html for some deets.

Cheers
Display posts from previous:   
   Index -> Programming, C++ -> C++ Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: