I end up with 3 copies of the line, each with a different word replaced. However, when I run my code the line copies itself once for every word I am trying to replace.įor example if I want to replace 3 words from the following: python ycsb phase db -s -P /home/james/YCSB/workloads/workloada -p I need to replace multiple words from a line in a text file with user input. My code works to an extent however the output that I am getting is wrong. I am trying to find and replace certain words in a text file using Java.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |