<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/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>WinForms</title><link>https://www.dotnetzone.gr:443/cs/forums/12/ShowForum.aspx</link><description>Θέματα για rich client / windows εφαρμογές, σε οποιαδήποτε γλώσσα (VB.NET, C#, managed C++, κ.α.)</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: Περίεργη Συμπεριφορά κατά την Ανάγνωση Αρχείου</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/5983.aspx</link><pubDate>Fri, 07 Oct 2005 04:54:48 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:5983</guid><dc:creator>Ηλίας Κεκάκος</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/5983.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=5983</wfw:commentRss><description>&lt;P&gt;Πριν κάτι μήνες το χρειάστικα και παρακάτω είναι ο κώδικας: &lt;BR&gt;1. Φόρτωμα αρχείων DOS: &lt;BR&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&lt;span style="color: Green;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'Here we can translate the file from what codepage is being created, in order to see the greek chars &lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; encoding &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; Encoding &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; encoding.GetEncoding(737) &lt;br /&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Try&lt;/span&gt; &lt;br /&gt;FileOpenPWCData.ShowDialog() &lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;If&lt;/span&gt; FileOpenPWCData.FileName.Length &amp;gt; 0 &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Then&lt;/span&gt; &lt;br /&gt;strFileName &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; FileOpenPWCData.FileName &lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;End&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;If&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;span style="color: Green;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;' Create an instance of StreamReader to read from a file. &lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; sr &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; StreamReader &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;New&lt;/span&gt; StreamReader(strFileName, encoding) &lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; line &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;String&lt;/span&gt; &lt;br /&gt;&lt;span style="color: Green;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;' Read and display the lines from the file until the end &lt;/span&gt;&lt;br /&gt;&lt;span style="color: Green;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;' of the file is reached. &lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Ελπίζω να βοήθησα. &lt;BR&gt;&lt;/P&gt;</description></item><item><title>Απ:Περίεργη Συμπεριφορά κατά την Ανάγνωση Αρχείου</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/3974.aspx</link><pubDate>Wed, 03 Aug 2005 23:55:23 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:3974</guid><dc:creator>timetrap</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/3974.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=3974</wfw:commentRss><description>Όντως χρειαζόταν η δεύτερη παράμετρος στο StreamReader.&lt;br&gt;
&lt;br&gt;</description></item><item><title>Απ:Περίεργη Συμπεριφορά κατά την Ανάγνωση Αρχείου</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/3973.aspx</link><pubDate>Wed, 03 Aug 2005 23:48:02 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:3973</guid><dc:creator>Παναγιώτης Καναβός</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/3973.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=3973</wfw:commentRss><description>99.9999999% έχει γίνει μπέρδεμα Unicode και ASCII. Αν το αρχείο το έσωσες με notepad, βεβαιώσου για το πως έχει σωθεί. Κανονικά το notepad σώζει σε ANSI codepage. Αν χρησιμοποιείς StreamReader χωρίς να δώσεις και την παράμετρο Encoding οι extended χαρακτήρες θα αφαιρεθούν. Δες και το &lt;A href="http://support.microsoft.com/default.aspx?scid=kb;en-us;889835"&gt;http://support.microsoft.com/default.aspx?scid=kb;en-us;889835&lt;/A&gt;&amp;nbsp; που περιγράφει αυτή την περίπτωση ακριβώς</description></item><item><title>Περίεργη Συμπεριφορά κατά την Ανάγνωση Αρχείου</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/3971.aspx</link><pubDate>Wed, 03 Aug 2005 23:36:13 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:3971</guid><dc:creator>timetrap</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/3971.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=3971</wfw:commentRss><description>Χαίρετε,&lt;br&gt;
&amp;nbsp;"διαβάζω" ένα απλό αρχείο που περιέχει ελληνικούς και αγγλικούς
χαρακτήρες και παραδόξως δεν εμφανίζονται οι πρώτοι παρά στην θέση τους
εμφανίζονται "κενά". Έχει κανείς κάποια ιδέα?&lt;br&gt;
Ευχαριστώ.&lt;br&gt;
&lt;br&gt;</description></item></channel></rss>