read a text file on client

How can I read some information from a text file on the client machine?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Using JavaScript, you cannot!
JavaScript is not capable of doing file IO.
You would need some kind of object (activeX or a plugin) to connect to the filesystem and grab the file.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ryan ChongCommented:
agree with thanassis, and you may need use the server side script languange to grab the file content, the current popular server side languange is like ASP, JSP, Coldfusion, php, etc.

try using vbScript instead of javascript. go to and search under vbscript for file IO or "read text file". hope this helps.
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

If the file is something written by you and less than 2kb, then you could just use cookies.
instead of searching in vbScript in, u could search under javascript. who noes wat surprises u can find...
it is possible, you can load a text file into a frame

You are not supposed to be able to read from this, but there are holes in IE that allow you to

So it CAN be done, but it should NOT be done, local files are the clients property...
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.