Is it possible to display the same information on a textfile on a web application so my programme can read directly from a textfile ?

so if any changes happen on my textfile it must also take effect in my programme without me doing anything

Recommended Answers

All 2 Replies

Yes, this is possible. There are four options to be able achieved this.

  1. Use PHP
  2. Use the HTML5 file reader
  3. Use javascript

Try google with 'reading text file in javascript' and for PHP read this. If you are developing in mvc there is a method called ReadAllText, I don't remember the proper syntax, but it should be on the Microsoft website.

Member Avatar

Do you need to read a client file or a server file?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.