I want to design a website which displays on loading two tables each with it's respective data from a csv file. Then every minute the website automatically refreshes.
This problem seems so simple! But yet the solution eludes me.
So the jist so far as I can think right now is: 1. read the file 2. place the file into an array by splitting at the commas 3. write the array into td's ????? 4. then print all this out into a div ????
Could someone please write up some sample code for a resource? Or have a better solution?
( If you have access to the desktop(s) , then I'd :
- watch the directory using windows apis for change
- when the directory content's change, post the data to your ASP page via http
In short, given access to the desktop, reverse your logic flow and have the directory changes drive the table display.