Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: Line Count
; Create testfile. ; Note: File will be overwritten! strFilename = ".\test.txt" FilePut (strFilename, StrFill (@CRLF, 24)) ;12 lines. intFileGetLineCount = FileSize (strFilename) - StrLen (StrReplace (FileGet (strFilename), @LF, "")) intAdd = intFileGetLineCount mod 10 If intAdd strStream = FileGet (strFilename) For intI = 10 To intAdd By -1 strStream = strStream : StrFill (9, 95) : @CRLF Next FilePut (strFilename, strStream) EndIf Run (strFilename, "") Exit
Article ID: W17928
Filename: Get line Count and Append if Necessary.txt
File Created: 2009:08:06:10:47:32
Last Updated: 2009:08:06:10:47:32