How to read lines from TXT file via scriptlet?

289 views Asked by At

I've got flow in HP OO, which task is read some data from TXT file and show them on display. I'll try do it with FOR loop, but program received error:

Scriptlet error at line 1.
Code: for(int x=1; x=17; x++)
Details: missing ; after for-loop initializer
In step: PowerShellScript

The code of my scriptlet:

for(int x=1; x=17; x++)
{
     System.out.println.("C:\Users\tester01\Desktop\report.txt".Line[x]);
}

Probably code in for loop is not correct, but I actually want to run this loop.

0

There are 0 answers