Hello I have a simple need. but not sure how to do it. I’m reading in a .txt file, and I have to write the file back out to another .txt file minus the first and last records. It’s almost a copy of the original file, but without the first and last records. what activities do i use to accomplish this? thanks for your help community!!!
- Read Text File activty → Saved in a String
- Split string. it depends how records are seperated. it can be a new line, comma, etc, → A list is created from the string variable
- Remove first and last item from the list.
- Join the list into string.
- Write the string to a new text file
1 Like