I need to be able access a text file (about 20 lines) and basically just replace the first line with custom text without changing anything else. What is the best way to do this?
(I understand that this would be much easier to do in Perl, but I don't have that option)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.