- Moderator
- #1
I'm building a report in ASP (with hand-made pivot tables, but that's not the issue).
Anyway.... I need to give the user the ability to get the report data (which is in an HTML table) in a CSV format.
Scenario 1:
Find a piece of client-side Javascript that would read the HTML table and export it as a .CSV file.
Scenario 2:
Write a CSV file at the same time that I'm building the HTML table. However, I would need to delete the "old" CSV files off of the server (probably at the time that the page is loading)
So, the question for scenario 2 is:
Anybody know how I can do a delete *.CSV for files that are > 1 day old?
Just my 2¢
"What the captain doesn't realize is that we've secretly replaced his Dilithium Crystals with new Folger's Crystals."
--Greg
Anyway.... I need to give the user the ability to get the report data (which is in an HTML table) in a CSV format.
Scenario 1:
Find a piece of client-side Javascript that would read the HTML table and export it as a .CSV file.
Scenario 2:
Write a CSV file at the same time that I'm building the HTML table. However, I would need to delete the "old" CSV files off of the server (probably at the time that the page is loading)
So, the question for scenario 2 is:
Anybody know how I can do a delete *.CSV for files that are > 1 day old?
Just my 2¢
"What the captain doesn't realize is that we've secretly replaced his Dilithium Crystals with new Folger's Crystals."
--Greg