Technical FAQs

Ask a Question

How can I open/read/close a text file in Vijeo Runtime?

Use below script to open/read/close a text file in Vijeo Runtime:

String s; //Java string variable

int lineNum = 0;"File1"); //File1 is the alias name of the text file


{s= TextFile.readLn(); //returns the first 700 characters in the line

if (s==null) break;

STRING01[lineNum++].write(s); //STRING01 is a Vijeo Designer string array variable



Was this helpful?
What can we do to improve the information ?