I need to read a currency table from a specific website and save it to my working directory. My problem is that I don't know how to start, in reading in a specific item from a website using javas FileReading?
I am not sure I completely understand what you are trying to do. You are trying to read from a webpage's HTML table? If so then you could create a URLConnection to the website and parse the stream for your information. You will need to write the parser yourself but it is not very difficult. Wushutwist
I think that parser is mainly used to displaying HTML in SWING. We tried to use it to parse an HTML file for relevant pieces of information but it is not really design for that. Heck, HTML is not designed for that. Wushutwist
You use this parser the same way you use a SAX XML parser, by creating a class that implements the callback methods of the parser to do what you need to do. You can find many examples of how to do this online. It's really easy and is MUCH better than writing a parser from scratch for your particular purpose.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.