Powered by Blogger.
Showing posts with label RegEx. Show all posts
Showing posts with label RegEx. Show all posts

program to read/find emails from the given text file

>> Sunday, September 7, 2014

Today morning i need to collect some emails of java guys from the java fourms or websites. So i started copying emails in this page by slecting the email and copying using Ctrl+C, i have done 20 emails copied. Then i lose my patience to copy. Immediately i got an idea, why can't i write a program to read all the emails from the page. Then i copied all the text from the page and pasted in a text file named as emails.txt. Now the java program came in to the picture and we should use java.io package to write or read file operations. In addition i am taking java.util.HashSet and java.util.regex packages to start our program. Here we are reading a text file containing emails with text and writing into another text file this is called deserialization and serialization.
find emails from the given text file_JavabynataraJ

Read more..

Related Posts Plugin for WordPress, Blogger...
© javabynataraj.blogspot.com from 2009 - 2022. All rights reserved.