can someone help me.plzz.
for example i have a text file named “testing.txt”
and inside the file is:
name:
asdf
position:
x:
99
y:
88
z:
66
how can i get the 88 in the txt file???
help plzz…tnx
can someone help me.plzz.
for example i have a text file named “testing.txt”
and inside the file is:
name:
asdf
position:
x:
99
y:
88
z:
66
how can i get the 88 in the txt file???
help plzz…tnx
cant you just use standard .net io ?
http://msdn.microsoft.com/en-us/library/db5x7c0d(v=vs.80).aspx
Have you tried that ?
then based on what you have…
split on : to get each field…
Then loop through the split values…
although that file is not the best for reading…
a better way would be…
name:asdf
x:99
y:88
z:66
then do two splits…
first split on return then after you do then loop through each item in that array…
then split again to get the property and then the value… IE split on :
then in the code… if property = bla then set value … etc.
nope…im not familiar with that…
what im trying to do is load the file and player will be in that position…
plz help tnx ![]()
shawndg…i can now read whats inside the file can you help me how to get the specific line like 88…??
Read the file line by line, split the string(from each line) by the colon, use the second element in the array as the value and the first element in the array/collection as a key.
tnx ![]()
i hav another question…