211 viewsMay 29, 2023JavaJava 1 Mercy Margret1.64K May 23, 2023 0 Comments How we can find a string in a text file in Java? Shathana. S.R. Answered question May 29, 2023 3 Answers ActiveVotedNewestOldest 0 BrindhaPrathaban2.11K Posted May 25, 2023 0 Comments Open file in write mode using open() function. Write string to the file using write() method. Close the file using close() method. BrindhaPrathaban Answered question May 25, 2023 You are viewing 1 out of 3 answers, click here to view all answers. Register or Login