Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I want to create a text file locally on my system using javascript/jquery.

I used this code to create file but not working on my System.

JavaScript
chrome :18.0.1025.152 

chrome.browserAction.onClicked.addListener(function(tab) {
  requestFS = window.requestFileSystem || window.webkitRequestFileSystem;
  requestFS(window.PERSISTENT, 1024*1024 /*1MB*/, function(fs) {
    fs.root.getFile('test.txt', {create: true}, function(fileEntry) {

function onInitFs(fs) {

  fs.root.getFile('log.txt', {create: true, exclusive: true}, function(fileEntry) {

  }, errorHandler);

}

window.requestFileSystem(window.TEMPORARY, 1024*1024, onInitFs, errorHandler);

Is it possible to create Text file without using ActiveX.


Thanks in Advance,
Saffuraj
Posted
Updated 13-Apr-12 15:23pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900