I have to read a text file in my skill program.
My text file is:
X = 40 Y=60
It's a position, and i have to read the value to fill a variable in a function, in my SKILL program.
How I can I do please?
I tried the code of eDave and it works perfect. But i have one question, If I have multiple values of x and y per line at the text file can the same code extrcat all of them?.
for extracting contents of a text file, I use this code
variable txtFile is the input file directory and file name
It stores one line at a time at variable tmpLine.
the number of times you enter gets(tmpLine file) determines which line in the text file is extracted.