
i am trying to read and write a file. my program works perfectly i am using PrintWriter and BufferedReader. but my problem is that when reading line by line if i reach a certain conditions like "if(line.startsWith("blahblah"))" jump that line and print the rest of the line. i want to do some thing like this
input file
blahblah i am a computer i am running windows i am of windows 7
blahblah i am a computer i am running mac i am of lion
blahblah i am a computer i am running linux i am of ubuntu
output i want is: line1. i am a computer i am running windows i am of windows 7 line2. i am a computer i am running mac i am of lion line3. i am a computer i am running linux i am of ubuntu
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.