|
-
Jan 7th, 2014, 04:33 PM
#1
Thread Starter
Lively Member
WriteAllLines, ReadAllLines; StreamReader, StreamWriter?
Using either the WriteAllLines/ReadAllLines or StreamReader/StreamWriter, how
could you retrieve specific/ in-between information from the file "C:\Users.txt".
The file "C:\Users.txt" looks like this >
Code:
#Users
John
Ashley
#Stats
John
HP: 100
Ashley
HP: 100
I am attempting to accomplish 2 simple tasks with the above information:
1) Retrieve the list of users to a MessageBox.Show(ListofUsers)
2) Retrieve Johns HP to a MessageBox.Show(JohnsHP)
Can someone please show me how to do this by code example using the above
information?
Thanks, VBBBQ
Tags for this Thread
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
|