Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading files and displaying contents via a link

Status
Not open for further replies.
Apr 13, 2006
9
GB
Hey geniuses

I hope someone can help me with this its doing my head in hehe. What i wish to do is to display all the .txt files within my docs folder onto the screen like this for example:

myinfo.txt
yourinfo.txt
herinfo.txt
hisinfo.txt

..etc etc

now the part that has me pulling my hair out is i want to be able to click each .txt file individually and have its contents displayed on the screen.

because im constantly adding files to the directory it would be good to have one piece of code that would detect which file im clicking on and then display its contents rather than me having to program each files display code individually - if you see where im going.

please can someone help me :'(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top