Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I delete rows of a text file?

Tags:

java

file

How can I delete the first two rows of a text file with Java?

like image 723
Chamal Avatar asked Nov 28 '25 21:11

Chamal


1 Answers

Read the file and write back everything but the first two rows.

like image 90
jzd Avatar answered Dec 01 '25 10:12

jzd



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!