'Reading C program's output files in javascript

I'm trying to connect two programs I wrote- one is a c program that outputs files to my local disk and the other is a web program that's supposed to show the content of this files on screen by reading them from my disk. I've tried different methods to read those files but it all failed.



Solution 1:[1]

You can't read it in JavaScript because it doesn't have access to whatever is in your filesystem, so you could either make your C program output the files with HTML markup and append to the same HTML file or put your web app on a server and use a backend technology (like Apache & PHP) to interpret those files and display them however you want.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ken Neumann