our intranet website has a menu system developed my Roonaan, an PHP expert, that lists all folders/subfolders and pdf files. when user clicks the pdf filename in the menu structure, the contents of the txt file will be displayed in a table td tag.
the pdf and txt file will be named the same, the pdf will be the actually file to be opened but the .txt file will be a description of the pdf file, so the user can know what the pdf file is about before opening it.
so how can i read the contents of a txt file and display it?
also if the txt files contains newlines etc, can they be keep, when read into the table td or textarea....