| View previous topic :: View next topic |
| Author |
Message |
Hack-Addict Master Cheater
Reputation: 0
Joined: 20 Nov 2007 Posts: 287
|
Posted: Mon Aug 11, 2008 10:33 pm Post subject: (Question - VB6) How would I? |
|
|
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?
_________________
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Mon Aug 11, 2008 10:45 pm Post subject: |
|
|
| It would probably be a fantastic idea if you looked up how to read a text file first.
|
|
| Back to top |
|
 |
zhanfeng123 How do I cheat?
Reputation: 0
Joined: 20 Jan 2008 Posts: 9
|
Posted: Mon Aug 11, 2008 11:11 pm Post subject: |
|
|
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 |
|
 |
Hack-Addict Master Cheater
Reputation: 0
Joined: 20 Nov 2007 Posts: 287
|
Posted: Tue Aug 12, 2008 8:04 am Post subject: |
|
|
| 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. +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... >.> [/code]
_________________
|
|
| Back to top |
|
 |
NothingToShow Grandmaster Cheater Supreme
Reputation: 0
Joined: 11 Jul 2007 Posts: 1579
|
Posted: Tue Aug 12, 2008 8:05 am Post subject: |
|
|
| 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. +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... >.> [/code] |
If you did know that, then why would you post such a bad example?
|
|
| Back to top |
|
 |
Hack-Addict Master Cheater
Reputation: 0
Joined: 20 Nov 2007 Posts: 287
|
Posted: Tue Aug 12, 2008 8:31 am Post subject: |
|
|
| 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. +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... >.> [/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.
_________________
|
|
| Back to top |
|
 |
|