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 


very easy +rep vb6

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

Joined: 16 Oct 2007
Posts: 541

PostPosted: Mon Mar 24, 2008 12:25 pm    Post subject: very easy +rep vb6 Reply with quote

+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
View user's profile Send private message
NothingToShow
Grandmaster Cheater Supreme
Reputation: 0

Joined: 11 Jul 2007
Posts: 1579

PostPosted: Mon Mar 24, 2008 12:26 pm    Post subject: Reply with quote

Right Click in a folder -> New -> Textfile.
Open it and write some stuff.

Read this:
http://www.informit.com/library/content.aspx?b=STY_VB6_24hours&seqNum=159
Back to top
View user's profile Send private message
Box
Grandmaster Cheater
Reputation: 0

Joined: 16 Oct 2007
Posts: 541

PostPosted: Mon Mar 24, 2008 12:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
NothingToShow
Grandmaster Cheater Supreme
Reputation: 0

Joined: 11 Jul 2007
Posts: 1579

PostPosted: Mon Mar 24, 2008 12:32 pm    Post subject: Reply with quote

I've never used that ( the byte ) method, so I cant tell you.
Back to top
View user's profile Send private message
XxOsirisxX
Grandmaster Cheater Supreme
Reputation: 0

Joined: 30 Oct 2006
Posts: 1597

PostPosted: Mon Mar 24, 2008 8:07 pm    Post subject: Re: very easy +rep vb6 Reply with quote

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..

Code:
print #1, cls
(to start a new line, just like press enter at notepad)
Code:
print #1, "bla bla bal..."

_________________

Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8588
Location: 127.0.0.1

PostPosted: Tue Mar 25, 2008 1:06 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Haxory'
Grandmaster Cheater Supreme
Reputation: 92

Joined: 30 Jul 2007
Posts: 1900

PostPosted: Tue Mar 25, 2008 9:25 am    Post subject: Reply with quote

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
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8588
Location: 127.0.0.1

PostPosted: Tue Mar 25, 2008 12:23 pm    Post subject: Reply with quote

What are you trying to do exactly? Like.. whats this file being used for?
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
minium haxor
Advanced Cheater
Reputation: 0

Joined: 03 Dec 2007
Posts: 82
Location: Faroe islands

PostPosted: Mon Jun 02, 2008 4:23 pm    Post subject: Reply with quote

go on youtube and search SilverMagics he has 50 tutorials
_________________
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: Mon Jun 02, 2008 4:27 pm    Post subject: Reply with quote

This is 2 months old! Stop bumping old shit!
_________________
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