12-10-2020 12:58 PM - edited 12-10-2020 12:58 PM
I've tried to create a program that will read the line i choose from a text file, turn it into an array of strings and index the array.
The text file is set up as:
AA
BB
CC
DD
etc.
However, when i start the program there is no output from the "read from text file" part.
I've tried to troubleshoot it but i can't seem to get anywhere.
Program is attached
Solved! Go to Solution.
12-10-2020 01:15 PM
You really should be checking your errors coming from the opening and reading of the file. My guess is your path is wrong.
An additional note, you don't actually need the Open/Create/Replace File function here. You can wire the path directly to the Read Text File.
12-10-2020 01:35 PM
I took out the Open/Create/Replace File function and redefined my path and it worked.
Thanks 🙂
12-10-2020 01:44 PM
Does the file get changed constantly by other applications or is it static? If static, read it before the loop.
We can only see a truncated diagram picture. Hard to tell how reasonable the entire code is.