I have come across this solution..Using ActivXobject..
function GetLineCount(filename) {
alert('method start');
var fso = new ActiveXObject("Scripting.FileSystemObject");
var i = -1;
if (fso.FileExists(filename)) {
var CTF = fso.OpenTextFile(filename, 1, true);
data = CTF.ReadAll();
alert(data);
CTF.Close();
}
}
I am still doing UAT on it.