For my proje i want to remove a unwanted paragraph in a text file. For example my text file may have acknowledgment in between sum useful data so i want to remove the acknowledgment paragraph fully...can anyone tel how to do tat
abar_sow
0
Light Poster
Recommended Answers
Jump to PostRemoving is the easy part you have to think about how you gone search/locate this unwanted part of text. What sort of criteria you will use? How you will handle your text, where you will get it from (user/file)?
Jump to PostYou'll have to read from one file and write what you want into another. As you scan your input, when you find line.startsWith("Acknowledgement") then keep reading lines but don't write any data until you get to the line.startsWith("Introduction").
I hope you aren't stripping copyrighted material of all copyright and …
All 6 Replies
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
abar_sow
0
Light Poster
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
abar_sow
0
Light Poster
abar_sow
0
Light Poster
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.