var fso = new ActiveXObject("Scripting.FileSystemObject"); var buffer = fso.OpenTextFile("fichero.txt");