By reading emails, do you mean connecting to an email server and reading the emails it has for a user? Like Outlook express or Thunderbird. To do this I think you need to understand SMTP. Some doc for SMTP are in RFC821 and RFC1869.
Joined: Mar 22, 2008
Originally posted by Ashish Hareet: Farakh,
Reading webpages is essentially the same as reading any other file except for the IO classes. You might want to use java.net.URL class to obtain a stream to the resource.
To make things easier with the parsing of webpages, you can treat the webpages as xml resources & then use DOM or SAX parsers. Have a look at the javax.xml.parsers.SAXParser class as a starting point.