A very simple way to test the CSV file using javascript
This tutorial will give a simple way to create and write into the CSV file
//A very simple way to create and write into CSV file
//Creating the CSV file
const filename = "output.csv";
var file = document.createFile(filename);
//Now the file has being created now
//we will try to fill the file
//Fill the CSV file "output.csv"
var message="";
for (var i=0;i<5;i++)
{
message += i+", name"+i+",content"+i+", Age"+i+",country"+i+", place"+i+",address"+i+", test"+i+",problem"+i+", happy"+i+",root"+i+", final"+i+"\n";
}
file.content = message;
No comments:
Post a Comment