I'm reasonably new to Lua although I have used other languages which are similar. So far I've spent 8 hours to no avail trying to parse a large text file.
The file in question looks something like this: (but thousands of lines long)
A|KLAX|LOS ANGELES INTERNATIONAL|33942522|-118407161|125
I've got the user to enter the KLAX variable, but my goal is to get out this part of the line in question WITHOUT using tables: 33942522|-118407161
E.g.
APTDEP_DATA = 33942522|-118407161
Or even get a whole line out of the .txt file as a string?
E.g.
APTDEP_DATA = A|KLAX|LOS ANGELES INTERNATIONAL|33942522|-118407161|125
Thanks a heap in advance. After 8 hours, it would be great to know whether what I'm trying to do is even possible. (Every tutorial I see is parsing data into tables)
I've tried a lot of things to this effect:
THE NZAA is also a code I was trying to find. So don't get confused with KLAX thing. I was just trying to get a result.
(I couldn't get the code to show properly, sorry about the link)