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 >
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
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: 1001) 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