Appendix: Built-in Scripting Language Notes Note: This function only supports ASCII and UTF-16LE text encoding. (UTF-16LE is the Unicode implementation that is natively supported by Windows.) If you use this function to get text from a UTF-8 or UTF-16BE encoded file, then you may see some invalid characters. Important: This function can only read up to 509 characters in a single function call. If a line has more than 509 characters (i.e., 507 alphanumeric + CR + LF), then the function will read it as two or more lines. This will also increase the effective line count for the purposes of the Search parameter.
So, for line 100 that has 1024 characters (i.e., 1022 alphanumeric + CR + LF), the function must be called three times: GetLine( "C:\FileName.txt", 100, "strTagStore[1]") //Reads the first 509 characters GetLine( "C:\FileName.txt", 101, "strTagStore[2]") //Reads the second 509 characters GetLine( "C:\FileName.txt", 102, "strTagStore[3]") //Reads the last 6 characters After this, line 101 of the source file is actually counted by the function as line 103. Therefore, to avoid unnecessarily complicated line counting, you should make sure the source file is limited to 509 characters per line.
Examples HST2TXT Export information from the Trend history file(s) in proprietary binary format ( *.hst ) to a plain text ( *.txt) or comma-delimited ( *csv ) file. Syntax HST2TXT( strStartDate , strStartTime , numDuration , numGroup , strTargetFile , optStrSeparator , op ) strStartDate The start date of the data. strStartTime The start time of the data. numDuration Numerical tag containing duration of the data in hours. numGroup strTargetFile Numerical tag containing trend group number.
InduSoft Web Studio Page 531 -7 Invalid number of parameters -8 Invalid line number Tag Name Expression Tag GetLine( "C:\TechRef v61.doc", "Studio version 6.1", "ReturnedLine" ) // Gets the first occurance of "Studio version 6.1". Tag GetLine( "C:\Readme.txt", 1, "ReturnedLine", 0, "Overflow" ) // Gets the second line of the file. Function Group Execution Windows Embedded Thin Client HST2TXT File Asynchronous Supported Supported Supported