Discover our Clipsal Smart Home packages as seen on The Block 2018

in location


I'm looking for

  • Wholesalers
    • Uncheck All Check All
    • Expand
    • Expand
    • Expand
    • Uncheck All Check All
  • Switchboard Manufacturers
    • Uncheck All Check All

The best way to see what Clipsal electric products can do for your home is seeing them in action at a Clipsal Display Centre.

Product stock may vary according to location. If you're after a specific product range, please check with your chosen location before visiting.

10 Results
    Load More Load Complete
    Change Location

    How to read text from a file in Vijeo Designer?

    Issue: How to read text from a file in Vijeo Designer?

    Product Line: Vijeo Designer

    Resolution: In Vijeo Designer, we are able to read text from a file. There is an example provided in the help file of Vijeo Designer. Please see section

    Here is an excerpt of the Help File:
  File Methods

    Use the following methods to read from a text file (.txt) line-by-line. The text file's encoding must be Unicode. For information on how to add a text file to your project, see Section 11.7.4, Adding Text Files to the Target.




    Opens the text file at run time.


    Reads from the text file one line at a time.


    Closes the text file.



    The following example shows how to open, read, and close a text file at run time.

    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




    • Make sure that the string array variable (STRING01, in the above example) has enough elements to handle the number of lines in the text file. Use the NumOfBytes property of the array variable to set the length of the array elements. Note that the maximum number of characters a string variable can hold is 100 (i.e., NumOfBytes=100). If a single line contains the maximum of 700 characters, the last 600 will be truncated. For more information, see Section, Data Details Tab.

    Didn’t find what you were looking for?

    Try Searching Again View Our Categories

    Need further assistance?

    Our Customer Care department provides total customer service solutions for our residential, industrial and commercial applications.

    Get Assistance