Question 1 Replies 22 Views × Close popover Anit Kumar (AnitK860) Ford Motor Company Ford Motor Company IN View Profile Send Message AnitK860 Member since 2019 1 post Ford Motor Company Posted: September 23, 2019 Last activity: September 23, 2019 Posted: 23 Sep 2019 3:30 EDT Last activity: 23 Sep 2019 23:58 EDT Closed Need help on File.WriteAllLine I need to delete first and last row of txt file and I assume it can be done using WriteAllLines, can some help me with sample automation? ***Moderator Edit-Vidyaranjan: Updated Platform Capability*** Robotic Process Automation × Close popover Facebook Twitter Linkedin Email Copy Link Copied! Moderation Team has archived post, learn more × Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Posted: 1 year ago Posted: 23 Sep 2019 23:58 EDT × Close popover Jayachandra Reddy (Jayachandra Reddy K) Infosys Infosys IN View Profile Send Message Jayachandra Reddy K Infosys replied to AnitK860 WriteAllLines won't delete the lines. First you have to read the file with readalllines and delete the first and last line.