|
-
Oct 29th, 2009, 03:12 PM
#1
Thread Starter
Lively Member
Reading data from text file
I need help, me and my friend are working on a simple game and we want it to load the character's info from the text file.
for example:
Private Sub Form_Load()
CharName.Text = (Load from line 1 of text file)
CharLevel.Text = (Load from line 2 of text file)
If TextFile Doesn't Exist Then
MsgBox "No character files could be loaded, you need to make a new character"
End If
End Sub
and so on, also, I need to know how to save this data to a text file (for creating a new character)
And I need it so if there's no such file, it will tell the user that he/she needs to create a character.
Thanks,
Kalo93
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|