Sign in to follow this  
Followers 0
hagai

structured text end of file.

1 post in this topic

hey all, i've encountered a small problem. i'm using automation studio and structured text and trying to build a function block that gets enable,file ident and line index as input and uses 2 var_output to store the line length and the text itself. it all works for fine for every row except the last one. i count '$n' chars to get to the index and once there count and paste chars till i see another '$n'. problem with that ofcourse is that the last line of the text file doesn't necessary end with a new line char. i've tried looking for End of file chars but to no avail so far ('$1C' , '$1E' , '$28' and so on). what can i do? thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0