What is the path you are passing to the function?
code:
var oFSO = new ActiveXObject('Scripting.FileSystemObject');
function ReadFile( filepath ) {
if ( FileExists( filepath ) == true ) {
var f = fso.OpenTextFile( filepath, 1 /* For_Reading */, false, (-2) /* TristateUseDefault */ );
return( f.ReadAll() );
}
return false;
}
function FileExists ( filepath ) { return oFSO.FileExists( filepath ); }