Hello,
How do I read in text as string instead of an integer?
These lines are supposed to read in data as text, but all the values I get are these numbers (respectively)...
5628
5639
-1
5664
8795
The raw data from text file...
[SimVars.0]
Latitude=N21° 20' 47.36"
Longitude=W157° 27' 23.20"
What is wrong?
Thanks.
Calvin
How do I read in text as string instead of an integer?
Code: ( python)
start = content.find("SimVars.0")
latstart = content.find("Latitude=")
latend = content.find("Latitude=",latstart+1)
longstart = content.find("Longitude=",start)
longend = content.find(",",longstart)These lines are supposed to read in data as text, but all the values I get are these numbers (respectively)...
5628
5639
-1
5664
8795
The raw data from text file...
[SimVars.0]
Latitude=N21° 20' 47.36"
Longitude=W157° 27' 23.20"
What is wrong?
Thanks.
Calvin







