Live Chat Icon For mobile
Live Chat Icon

How to create files on the client m/c using JavaScript?

Platform: ASP.NET| Category: Client Side Scripting

Here is a technique usable in IE Only.

	var fso=new ActiveXObject('Scripting.FileSystemObject');
	function WriteToFile()
		var writeStream=fso.CreateTextFile('C:\TestFile.txt',true);
		writeStream.writeLine('This is a test file');

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.