Oooh you want to read the file too...it's not important ! ^^'
Take this but i think there's better function than this :
code:
function read(file) {
var FileSystem= new ActiveXObject('Scripting.FileSystemObject');
var file = FileSystem.OpenTextFile(file, 1);
lines = "";
while(!file.AtEndOfStream) {
lines += file.ReadLine()+"\n";
}
file.Close();
return lines ;
}