Listed below is part of a sample code someone posted for AMS4, the code deletes blank lines from a text file. I am now trying to see if I can do the same in AMS5 Pro but I am having difficulty finding equivalent actions . Here is the AMS4 code I am trying to duplicate:
%LineCount% = TextFile.CountLines ("%TempDir%\myfile.txt")
%Ctr% = "0"
WHILE (%Ctr% < %LineCount% )
%TextLine% = TextFile.GetLine ("%TempDir%\myfile.txt", %Ctr%)
IF (%TextLine% = "")
TextFile.DeleteLine ("%TempDir%\myfile.txt", %Ctr%)
%LineCount% = Evaluate (%LineCount% - 1)
ELSE
%Ctr% = Evaluate (%Ctr% + 1)
END IF
END WHILE
Do I need to use both Tables and Paragraphs?


