02-14-2012 07:18 AM
I am opening the Refnum of a text file while starting my software and I am keeping the file open until the software runs. I am reading a text file when an event occurs. The problem I am facing here is when I read the file 1st time am reading am able to read the text from the file but when I read it again am getting only empty string. Could anyone help me to understand why this happens.
Solved! Go to Solution.
02-14-2012 07:27 AM
A race condition? Why are you doing two reads in parallel? Keeping the file open is not a problem, but remember there is a file pointer. If you are reading empty strings, it's probably because you are a the end of the file. Use Set File Position VI to set is for the start of the file.
02-14-2012 07:33 AM
Not actually a race condition but the pointer you said does the matter. Issue got solved. Thanks