troubleshooting Question

read contents of txt file and display in textarea or table td

Avatar of ellandrd
ellandrdFlag for Ireland asked on
71 Comments1 Solution581 ViewsLast Modified:
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....
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 71 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 71 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros