File Creation in safari mac - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

File Creation in safari mac

nanju84nanju84 Posts: 3Member
hi



Create File

<! This function will create a file named 'newfile' on the same directory as the HTML unless path is given>


function openFile()
{ var filePath = 'c:/filename.txt';
var fileSysObj = new ActiveXObject('Scripting.FileSystemObject');

fileSysObj.CreateTextFile(filePath);
}


above code is working fine in IE but not in Safari pls can any one help me

thanks and regards
Nanju
Sign In or Register to comment.