Hello,
I have a txt file which number of lines is variable and I need to delete the first and last line can someone help me?
Hello,
I have a txt file which number of lines is variable and I need to delete the first and last line can someone help me?
@LucasSilva - Here you go…
StrLines is String Array
File.WriteAllLines(NewFileName,readlines.Skip(1).Take(readlines.Count() - 2))
Invoke Code arguments
Input and Output:
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.