Bookmark Topic Watch Topic
  • New Topic

searching for url in file

 
Willie Tsang
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Report post to moderator
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 http://java.sun.com/index.html

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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate thread.
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic