aspose file tools
The moose likes I/O and Streams and the fly likes searching for url in file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » I/O and Streams
Reply locked New topic

searching for url in file

Willie Tsang

Joined: Nov 20, 2011
Posts: 24
I have assignment that im stuck with.
Design a program that finds all hyperlinks of the form <a href="link">link text</a> on the address

I have already did the read and write its contents to a file. I am stuck at, how can i read contents that in the file, and know whether it is a url then return its url address. Any suggestions?
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42954
Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate thread.
Have you tried LearnNowOnline?
subject: searching for url in file