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++] Memo line by line

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
slippppppppp
Grandmaster Cheater
Reputation: 0

Joined: 08 Aug 2006
Posts: 929

PostPosted: Tue Aug 05, 2008 8:00 pm    Post subject: [C++] Memo line by line Reply with quote

Does anyone know how to read a memo line by line?

im coding in Borland C++ btw.
Back to top
View user's profile Send private message AIM Address MSN Messenger
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Wed Aug 06, 2008 3:40 am    Post subject: Reply with quote

Erm.. Could you explain a bit more? What kind of memo? Just some .txt?

Just open the file and keep doing .operator>> until the end is reached?
Back to top
View user's profile Send private message
slippppppppp
Grandmaster Cheater
Reputation: 0

Joined: 08 Aug 2006
Posts: 929

PostPosted: Wed Aug 06, 2008 10:18 am    Post subject: Reply with quote

No, im not openning any text.
I have a Memo or a RichEdit on my form.
As you type, there might be several lines of different commands.
I want to be able to read each line one by one.
Back to top
View user's profile Send private message AIM Address MSN Messenger
HalfPrime
Grandmaster Cheater
Reputation: 0

Joined: 12 Mar 2008
Posts: 532
Location: Right there...On your monitor

PostPosted: Wed Aug 06, 2008 10:19 am    Post subject: Reply with quote

cin.getline()?
_________________
Back to top
View user's profile Send private message
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Wed Aug 06, 2008 4:17 pm    Post subject: Reply with quote

HalfPrime wrote:
cin.getline()?


That's for a console.

@OP:

Try taking the entire string, then parsing it using some type of method to split it by '\r\n' or something.

_________________
Wiccaan wrote:

Oh jeez, watchout I'm a bias person! Locked.


Auto Assembly Tuts:
In Depth Tutorial on AA
Extended
Back to top
View user's profile Send private message
HalfPrime
Grandmaster Cheater
Reputation: 0

Joined: 12 Mar 2008
Posts: 532
Location: Right there...On your monitor

PostPosted: Wed Aug 06, 2008 4:21 pm    Post subject: Reply with quote

Whoops. Just getline(file, string), not cin.getline().
_________________
Back to top
View user's profile Send private message
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