KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm looking for a small code snippet that will find a line in file and remove that line (not content but line) but could not find. So for example I have in a file following: myFile.txt : aaa bbb ccc ddd Need to have a function like this: public void removeLine(String lineContent) , and if I pass removeLine("bbb") , I get file like this: myFile.txt: aaa ccc ddd
Tags (comma-separated)
Save Edits
Cancel