I have a tab-delimited txt file.
I want to remove n-th row of tab-delimited txt.
I will assign like
n = 1
then the program will remove just the first row of the file.
If the program does it without even reading the whole input file, then it would be fantastic.
I tried to learn from one of my previous questions:
Concatenate tab-delimited txt files vertically
This question was vertically concatenating two tab-delimited txt files. So I thought reversing this process will do something similar for me. But I couldn't find how to do it.
I also tried many other stackoverflow answers.
But they are mostly 'removing lines that have specific phrase' rather than 'removing n-th line'
(How to delete a line from a text file using the line number in python, Deleting a specific line in a file (python), Deleting a line from a file in Python)