kellypayton
MIS
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 :'(
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 :'(