<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: File - ReadLine()</title><link>https://www.infopathdev.com:443/forums/thread/15066.aspx</link><pubDate>Mon, 12 Feb 2007 09:43:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15066</guid><dc:creator>diaboloche</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15066.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15066</wfw:commentRss><description>I used this &lt;br /&gt;&lt;br /&gt;&lt;pre&gt;while (!ts.AtEndOfStream)&lt;br /&gt;	{&lt;br /&gt;		s=ts.ReadLine();&lt;br /&gt;		Decouper_Mesure(s);      	      &lt;br /&gt;	}     &lt;br /&gt;    &lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Thanks !</description></item><item><title>Re: File - ReadLine()</title><link>https://www.infopathdev.com:443/forums/thread/15065.aspx</link><pubDate>Tue, 06 Feb 2007 18:00:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15065</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15065.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15065</wfw:commentRss><description>&lt;pre&gt;Console.WriteLine("Reading the contents from the file");&lt;br /&gt;StreamReader s = File.OpenText("Mytext.txt");&lt;br /&gt;string read = null;&lt;br /&gt;while ((read = s.ReadLine()) != null)&lt;br /&gt;{&lt;br /&gt;  Console.WriteLine(read);&lt;br /&gt;}&lt;br /&gt;s.Close();&lt;/pre&gt;&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://www.codeguru.com/Csharp/Csharp/cs_syntax/anandctutorials/article.php/c5861/&gt;http://www.codeguru.com/Csharp/Csharp/cs_syntax/anandctutorials/article.php/c5861/&lt;/a&gt;</description></item><item><title>Re: File - ReadLine()</title><link>https://www.infopathdev.com:443/forums/thread/15064.aspx</link><pubDate>Fri, 02 Feb 2007 03:47:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15064</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15064.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15064</wfw:commentRss><description>Hi Diaboloche,&lt;br /&gt;I'm sorry but I don't quite uderstand what you are looking for. This does seem like more of a straightforward coding question and I don't see where this has much to do with InfoPath. We are helping people with InfoPath not coding.</description></item><item><title>File - ReadLine()</title><link>https://www.infopathdev.com:443/forums/thread/13046.aspx</link><pubDate>Thu, 01 Feb 2007 15:22:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13046</guid><dc:creator>diaboloche</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13046.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13046</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;I want to read a file until the end of that-çi... I do not find the property which determines the end &lt;br /&gt;&lt;br /&gt;Sorry for my bad English &lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;	var fso, f, ts, s;&lt;br /&gt;    var ForReading = 1, ForWriting = 2, ForAppending = 8;&lt;br /&gt;    var TristateUseDefault = -2, TristateTrue = -1, TristateFalse = 0;&lt;br /&gt;    &lt;br /&gt;    fso = new ActiveXObject("Scripting.FileSystemObject");&lt;br /&gt;    //fso.CreateTextFile( "C:/test1.txt" );           // Crée un fichier&lt;br /&gt;    f = fso.GetFile("C://test1.txt");&lt;br /&gt;    ts = f.OpenAsTextStream(ForReading, TristateUseDefault);&lt;br /&gt;    //while(ForWriting &amp;gt; 1)&lt;br /&gt;    //{&lt;br /&gt;     while(&lt;b&gt;ts.????????????&lt;/b&gt;)&lt;br /&gt;     {&lt;br /&gt;      s=ts.ReadLine();&lt;br /&gt;      XDocument.UI.Alert(s);	      &lt;br /&gt;     }&lt;br /&gt;&lt;br /&gt; ts.Close( );&lt;br /&gt;&lt;/pre&gt;</description></item></channel></rss>