| View previous topic :: View next topic |
| Author |
Message |
Box Grandmaster Cheater
Reputation: 0
Joined: 16 Oct 2007 Posts: 541
|
Posted: Mon Mar 24, 2008 12:25 pm Post subject: very easy +rep vb6 |
|
|
+rep to first person who gives me the code to make a text file with visual basic 6 _________________
| zurkei wrote: | | Wow box your a real dick, I can't believe I actually thought that you were telling the truth... |
Fact: no one tells the truth on cheat engine fourms
Last edited by Box on Mon Mar 24, 2008 12:28 pm; edited 1 time in total |
|
| Back to top |
|
 |
NothingToShow Grandmaster Cheater Supreme
Reputation: 0
Joined: 11 Jul 2007 Posts: 1579
|
|
| Back to top |
|
 |
Box Grandmaster Cheater
Reputation: 0
Joined: 16 Oct 2007 Posts: 541
|
Posted: Mon Mar 24, 2008 12:31 pm Post subject: |
|
|
is this right?
| Code: | On Error Resume Next
Dim a As Byte
a = FreeFile()
Open "C:\Documents and Settings\Home\Desktop\textfile.txt" For Append As #a
Print #a, text1.text
Close #a |
_________________
| zurkei wrote: | | Wow box your a real dick, I can't believe I actually thought that you were telling the truth... |
Fact: no one tells the truth on cheat engine fourms |
|
| Back to top |
|
 |
NothingToShow Grandmaster Cheater Supreme
Reputation: 0
Joined: 11 Jul 2007 Posts: 1579
|
Posted: Mon Mar 24, 2008 12:32 pm Post subject: |
|
|
| I've never used that ( the byte ) method, so I cant tell you. |
|
| Back to top |
|
 |
XxOsirisxX Grandmaster Cheater Supreme
Reputation: 0
Joined: 30 Oct 2006 Posts: 1597
|
Posted: Mon Mar 24, 2008 8:07 pm Post subject: Re: very easy +rep vb6 |
|
|
| magic moo wrote: | | +rep to first person who gives me the code to make a text file with visual basic 6 |
You can simple use this..
| Code: |
Path$ = "C:\Lulz.txt"
Open Path For Append As #1
Close |
This will make one text file at C: named lulz.txt
If you wants to creat it on the same folder of the program, then..
| Code: | | $Path = app.Path & "\lulz.txt" |
If you wants to write in it...
between the open and the close, you can put..
(to start a new line, just like press enter at notepad)
| Code: | | print #1, "bla bla bal..." |
_________________
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8588 Location: 127.0.0.1
|
Posted: Tue Mar 25, 2008 1:06 am Post subject: |
|
|
Don't statically code file locations into your program unless it is based around the App.Path define or a location that is read from either a configuration file or the registry. You will run into file errors then, which if are left unhandled, will cause your program to just crash anytime a file is not found. You can create and add your text content into a file using:
| Code: | Dim fFile As Integer
fFile = FreeFile
Open App.Path & "\filename.txt" For Output As #fFile
Print #fFile, Text1.Text
Close #fFile |
Adjust the filename.txt to what ever you want the file to be called and it will create that file, if not found, in the same folder as your programs exe. If the file is already found it will be overwritten with the new content.
Mind you also! if you are debugging inside the IDE without saving your project at all and such, it will save the text file inside the VB root directory. This is due to the project having no App.Path before you save it so it defaults to the VB6.exe's location. _________________
- Retired. |
|
| Back to top |
|
 |
Haxory' Grandmaster Cheater Supreme
Reputation: 92
Joined: 30 Jul 2007 Posts: 1900
|
Posted: Tue Mar 25, 2008 9:25 am Post subject: |
|
|
| Code: | Dim fFile As Integer
fFile = FreeFile
Open App.Path & "\filename.txt" For Output As #fFile
Print #fFile, Text1.Text
Close #fFile |
how can you write and read from line 1 and 2
| Code: | Dim fFile As Integer
fFile = FreeFile
Open App.Path & "\filename.txt" For Output As #fFile
Print LINE1 #fFile, Text1.Text
Print LINE2 #fFile, Text2.Text
Close #fFile |
_________________
you and me baby ain't nothing but mammals so lets do it like they do on the discovery channel |
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8588 Location: 127.0.0.1
|
Posted: Tue Mar 25, 2008 12:23 pm Post subject: |
|
|
What are you trying to do exactly? Like.. whats this file being used for? _________________
- Retired. |
|
| Back to top |
|
 |
minium haxor Advanced Cheater
Reputation: 0
Joined: 03 Dec 2007 Posts: 82 Location: Faroe islands
|
Posted: Mon Jun 02, 2008 4:23 pm Post subject: |
|
|
go on youtube and search SilverMagics he has 50 tutorials _________________
|
|
| Back to top |
|
 |
HalfPrime Grandmaster Cheater
Reputation: 0
Joined: 12 Mar 2008 Posts: 532 Location: Right there...On your monitor
|
Posted: Mon Jun 02, 2008 4:27 pm Post subject: |
|
|
This is 2 months old! Stop bumping old shit! _________________
|
|
| Back to top |
|
 |
|