Read & Write to txt File on server


How could I approach this/are there any example for this available:

  • There’s a text file on my server with info.
  • My program should be able to read and write to this textfile.



Desktop app or web app? Since a web app runs on the server, it can read/write to any files for which it has permissions.

If a desktop app, then we will need more information. What kind of server? Is it on the LAN? Can you map a drive to it?