okay, so i have a text file with example content below
line1with some random stuff here
line 2 with something very completely different
line3 has some other neat stuff
line4 is the last line in the textfile
i need to get that text file, delete one line, and leave the REST of the file in tact. and so if i wanted to delete line 2, id want a result like this:
line1with some random stuff here
line3 has some other neat stuff
line4 is the last line in the textfile
notice i dont want any space left between the lines.
~code examples please! and even if that is impossible, any help would be appreciated! :)