| AppCtrlScript | |
| Help |
|
Applies to |
AppCtrlScript (Module: wmACScr1.dll) |
|
Group |
Other |
|
See also |
FOREACHFILE, FOREACHFOLDER, FOREACHIN, WHILE, EXITLOOP, COUNTLINESINFILE |
Calls a subroutine once for every line in the given (text) file. The lines must be separated by Chr(13) + Chr(10) (carriage return + line feed).
The subroutine can query the current line with %PAR1%; %PAR2% contains the current line index (starting with 1).
Use the EXITLOOP command to exit the loop from within the processed subroutine.
FOREACHLINEINFILE <FileName>, <SubName>
|
Part |
Description | |
| <FileName> | Source filename. | |
| <SubName> | Subroutine to call for each line in the source file. See SUB for details on subroutines. | |
|
| ||