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 


(Question - VB6) How would I?

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

Joined: 20 Nov 2007
Posts: 287

PostPosted: Mon Aug 11, 2008 10:33 pm    Post subject: (Question - VB6) How would I? Reply with quote

Hey, I have a question, how would I read a text file, only one line at a time? So that like one text file could like, one line would go in text1, then another would go in text2, from the same text file? Because I want to make an auto cracker, (I won't release unless you PM me) But I want to make it so that it will do something similar to this
Code:
SendKeys (Path here/Text.txt "line one")
SendKeys (Path here/text.txt" "line two")

Ect, so how would I?

_________________

Sciextron made the userbar up here, Rep him =D

[img]http://i145.photobucket.com/albums/r225/Michaell61/header.gif[/img] <---Visit theprocoders today!
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Mon Aug 11, 2008 10:45 pm    Post subject: Reply with quote

It would probably be a fantastic idea if you looked up how to read a text file first.
Back to top
View user's profile Send private message
zhanfeng123
How do I cheat?
Reputation: 0

Joined: 20 Jan 2008
Posts: 9

PostPosted: Mon Aug 11, 2008 11:11 pm    Post subject: Reply with quote

To read a text file do the follow

Open <FilePath + FileName.txt> For Input As #1
Do While Not EOF(1)
K = K + 1
Line Input #1, <Array>(K)
Loop
Close #1

That would read the texts inside the text file line by line and store them inside the array.
Back to top
View user's profile Send private message
Hack-Addict
Master Cheater
Reputation: 0

Joined: 20 Nov 2007
Posts: 287

PostPosted: Tue Aug 12, 2008 8:04 am    Post subject: Reply with quote

zhanfeng123 wrote:
To read a text file do the follow

Open <FilePath + FileName.txt> For Input As #1
Do While Not EOF(1)
K = K + 1
Line Input #1, <Array>(K)
Loop
Close #1

That would read the texts inside the text file line by line and store them inside the array.


Thanks, thats what I needed. Smile +Rep!

Quote:

It would probably be a fantastic idea if you looked up how to read a text file first.

And it would probably be a fantastic idea if you looked up a life first.
I was just using it as an example, I know how to read it from a text file... >.> Rolling Eyes [/code]

_________________

Sciextron made the userbar up here, Rep him =D

[img]http://i145.photobucket.com/albums/r225/Michaell61/header.gif[/img] <---Visit theprocoders today!
Back to top
View user's profile Send private message
NothingToShow
Grandmaster Cheater Supreme
Reputation: 0

Joined: 11 Jul 2007
Posts: 1579

PostPosted: Tue Aug 12, 2008 8:05 am    Post subject: Reply with quote

Hack-Addict wrote:
zhanfeng123 wrote:
To read a text file do the follow

Open <FilePath + FileName.txt> For Input As #1
Do While Not EOF(1)
K = K + 1
Line Input #1, <Array>(K)
Loop
Close #1

That would read the texts inside the text file line by line and store them inside the array.


Thanks, thats what I needed. Smile +Rep!

Quote:

It would probably be a fantastic idea if you looked up how to read a text file first.

And it would probably be a fantastic idea if you looked up a life first.
I was just using it as an example, I know how to read it from a text file... >.> Rolling Eyes [/code]

If you did know that, then why would you post such a bad example?
Back to top
View user's profile Send private message
Hack-Addict
Master Cheater
Reputation: 0

Joined: 20 Nov 2007
Posts: 287

PostPosted: Tue Aug 12, 2008 8:31 am    Post subject: Reply with quote

Moller wrote:
Hack-Addict wrote:
zhanfeng123 wrote:
To read a text file do the follow

Open <FilePath + FileName.txt> For Input As #1
Do While Not EOF(1)
K = K + 1
Line Input #1, <Array>(K)
Loop
Close #1

That would read the texts inside the text file line by line and store them inside the array.


Thanks, thats what I needed. Smile +Rep!

Quote:

It would probably be a fantastic idea if you looked up how to read a text file first.

And it would probably be a fantastic idea if you looked up a life first.
I was just using it as an example, I know how to read it from a text file... >.> Rolling Eyes [/code]

If you did know that, then why would you post such a bad example?


Tired, wet, and confused,got off the trampoline with the hose with 3 people... And it was like meh.

_________________

Sciextron made the userbar up here, Rep him =D

[img]http://i145.photobucket.com/albums/r225/Michaell61/header.gif[/img] <---Visit theprocoders today!
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