Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[C++] Question about file editing

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
IMRobbie
Newbie cheater
Reputation: 0

Joined: 26 Sep 2009
Posts: 24

PostPosted: Mon Mar 28, 2011 9:25 pm    Post subject: [C++] Question about file editing Reply with quote

Hi, CEF.
I need some help. I have an .txt file of dictionary words. How could I manipulate the .txt file line by line? Maybe put a line in a string varible, and compare until the eof? I haven't a clue how to start this.

I google around about this question, and I found a lot about map, vectors, and other containers. I'm not really familar with these because I'm still fairly new with c++. So, if you can give me a simple idea, I would be delighted to read your comment.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Tue Mar 29, 2011 7:20 am    Post subject: Reply with quote

Look into:
- std::ifstream
- std::getline

Once you have an open stream to the file you can loop til EOF with getline. You should find all the other required information just Googling these two functions.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites