Hi,
I want to read a file until the end of that-çi... I do not find the property which determines the end
Sorry for my bad English
var fso, f, ts, s;
var ForReading = 1, ForWriting = 2, ForAppending = 8;
var TristateUseDefault = -2, TristateTrue = -1, TristateFalse = 0;
fso = new ActiveXObject("Scripting.FileSystemObject");
//fso.CreateTextFile( "C:/test1.txt" ); // Crée un fichier
f = fso.GetFile("C://test1.txt");
ts = f.OpenAsTextStream(ForReading, TristateUseDefault);
//while(ForWriting > 1)
//{
while(ts.????????????)
{
s=ts.ReadLine();
XDocument.UI.Alert(s);
}
ts.Close( );