Read notepad file, write back out minus first and last records , HOW?

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!!!

  1. Read Text File activty → Saved in a String
  2. Split string. it depends how records are seperated. it can be a new line, comma, etc, → A list is created from the string variable
  3. Remove first and last item from the list.
  4. Join the list into string.
  5. Write the string to a new text file
1 Like

@jamesernie.carter

if you can share your sample text file then we can try

Thanks