Hello,
I want to open a file in a Gadget. Is there any possibility to do that I tried it with a File Object in JavaScript but this it seems that this isn't included into the API. After that I tried it with VBScript:
Sub readFile(ByVal filename)
Set fileObj = CreateObject("Scripting.FileSystemObject")
set file = fileObj.OpenTextFile(filename,ForReading)
set text = file.readAll
file.close
set file = nothing
return text
End Sub
But this also doesn't work.
Is there any possibility to do that without an ActiveX Object JavaScript is preffered.

Opening files in Gadgets
dmkp231
If you want to do it in JavaScript:
var fTmp = oFSO.OpenTextFile(sFile, 1);
var sText = fTmp.ReadAll();
fTmp.Close();
return sText;
}
TomWardill
That's exactly what I searched!
Works perfect