computer guy
01-10-2009, 06:16 PM
Hi there,
I want to read 2 strings from a text file and store them in a form of lookup table.
I can already read the strings in but need help with the lookup table.
e.g
Text file:
Temp, Foo
Hello, Temp2
lookup:
v1 := lookup("Temp")
print(v1)
Gives output:
Foo
Thank you http://forums.parallax.com/images/smilies/smile.gif
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Building Blocks To The Propeller Chip (http://robot.tmcp.com.au/buildingblock) A web site designed to help people who are new to the propeller chip.
Guitar Hero controller using the prop (WIP) --> HERE (http://robot.tmcp.com.au/buildingblock/projects/guitar.htm)
I want to read 2 strings from a text file and store them in a form of lookup table.
I can already read the strings in but need help with the lookup table.
e.g
Text file:
Temp, Foo
Hello, Temp2
lookup:
v1 := lookup("Temp")
print(v1)
Gives output:
Foo
Thank you http://forums.parallax.com/images/smilies/smile.gif
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Building Blocks To The Propeller Chip (http://robot.tmcp.com.au/buildingblock) A web site designed to help people who are new to the propeller chip.
Guitar Hero controller using the prop (WIP) --> HERE (http://robot.tmcp.com.au/buildingblock/projects/guitar.htm)