Sorry about your HDD. :(
Text File
Barnsley,Dronfield,1.70When it gets to a , I want it to take the characters in the first block, and assign it to Variable (Var1a) and then go to the second one and do the same for Var2a, then do the following:
Check if inputUserStart = Var1a Check if inputUserDestination = Var2a if the statements are true, assign the last data block (1.70) to a variable (Var3)
Well, you could go char by char, but I like the Pythonic way:
[php]
data = "Barnsley,Dronfield,1.70"
vars = data.split(',') # splits string at comma delimiter into list
if len(vars) >= 3: # have to check in case of malformed lines
if vars[0] == inputUserStart and vars[1] == inputUserDestination:
var3 = vars[2]
[/php] Then to display all three like this:
LABELTITLE
Date Issued
Var1a
Var2a
Var3
If you're using Tkinter, then just create a Frame and then Labels containing vars[0..3] within that Frame.
Jeff