Close sidebar

How to iterate through a text file and search records in a java program?

Hi i have a text file with data like customer name,customer address and customer phone.All these data are separated by commas like name,address,phone in the text file.I want to know how to iterate through this text file and read all lines in the text file and search records when a customer name is given as input in the java console.I also want to display searched data in the console.Please help me by giving the code for this program.Thanks in advance

  • Sharath
  • 3400 Views
  • 6 Answers
  • Hello, I hope your problem is resolved but if in case the problem still appears you can get in touch with the appsealing professionals they have experience and expertise in software programming such as code obfuscation, javascript security, a rel='nofollow' href="https://www.appsealing.com/rasp-security/"runtime application self-protection/a, react native security and owasp mobile top 10.


  • use string buffer inside the file handling


  • You have to use string buffer inside tge file handling.. 


  • use string buffer under file handling


Dicussion/Forum
core java
Ask New Question
Community Moderator
Only Youth and Educator can become Moderator.