WinAutomation - windows automation software with macro recorder

      How To - Delete the first row from Text file

      When you are working with text, a very common need that arises is a way to remove the first row that is contained in a text file. Fortunately, WinAutomation allows you to manipulate text with a lot of “tools”, so this is a problem that can be solved in many different ways. For the purposes of this article, we will implement a solution that uses lists to remove the first row of a text file.

      Retrieve specific item from a list

      When you use WinAutomation, you eventually come across lists. A text file can be stored as list, the files that you retrieve from a folder are stored in a list, the cells of an excel row are stored in a list. Sometimes, you will need to use a specific item of a list that is saved in a variable (e.g. the first item, the last item, the 9th item etc). In order to retrieve a specific item of a list, you will have to use the following notation:

      Manipulate every item of a list

      Sometimes, you may want to repeat one or more actions, for every item contained in a list. Either you want to use every item of an Excel row, or every line of a text file, you will have to deal with lists. In order to use every item of a specific list for a predefined set of actions, you will have to use a “For Each” loop (”For Each” action under “Loops” category).


      Featured Clients