<?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>.NET Framework</title><link>https://www.dotnetzone.gr:443/cs/forums/14/ShowForum.aspx</link><description>Θέματα για threading, remoting, reflection, exception handling, security, regex κλπ.</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: Detect binary or text stream ?</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/20359.aspx</link><pubDate>Tue, 14 Nov 2006 22:10:13 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:20359</guid><dc:creator>anjelinio</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/20359.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=14&amp;PostID=20359</wfw:commentRss><description>Μια χαρά έπαιξε Μάνο, thanx φίλε.</description></item><item><title>Απ: Detect binary or text stream ?</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/20324.aspx</link><pubDate>Tue, 14 Nov 2006 12:01:16 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:20324</guid><dc:creator>anjelinio</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/20324.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=14&amp;PostID=20324</wfw:commentRss><description>Χαχαχαχαχαααα :D ... my life story ρε Πάνο, σε νιώθω ρε φίλε :D</description></item><item><title>Απ: Detect binary or text stream ?</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/20322.aspx</link><pubDate>Tue, 14 Nov 2006 10:05:39 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:20322</guid><dc:creator>Panagiotis Kefalidis</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/20322.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=14&amp;PostID=20322</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;table width="85%"&gt;&lt;tr&gt;&lt;td class="txt4"&gt;&lt;img src="/cs/Themes/default/images/icon-quote.gif"&gt;&amp;nbsp;&lt;strong&gt;anjelinio wrote:&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="quoteTable"&gt;&lt;table width="100%"&gt;&lt;tr&gt;&lt;td valign="top" class="txt4"&gt;Καλά ρε'σεις ... βρυκολάκοι, δεν έχτε τίποτα καλύτερο να κάνετε στις 3 το πρωί;;; :D Μάλλον κι εγω στη νύστα μου, χρησιμοποιούσα StreamWriter κι όχι Binary, και μου χάλαγε τα text files. Όταν φτάσω δουλειά θα δοκιμάσω, thanx.&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/BLOCKQUOTE&gt;&lt;br&gt;&lt;br&gt;Άμα είχες deadline μειωμένο ξαφνικά κατα 3 εβδομάδες κι εσύ θα καθόσουνα έξυπνε &lt;img src="/cs/emoticons/emotion-4.gif" alt="Stick out tongue" /&gt;&lt;br&gt;</description></item><item><title>Απ: Detect binary or text stream ?</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/20317.aspx</link><pubDate>Tue, 14 Nov 2006 07:35:42 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:20317</guid><dc:creator>anjelinio</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/20317.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=14&amp;PostID=20317</wfw:commentRss><description>Καλά ρε'σεις ... βρυκολάκοι, δεν έχτε τίποτα καλύτερο να κάνετε στις 3 το πρωί;;; :D Μάλλον κι εγω στη νύστα μου, χρησιμοποιούσα StreamWriter κι όχι Binary, και μου χάλαγε τα text files. Όταν φτάσω δουλειά θα δοκιμάσω, thanx.</description></item><item><title>Απ: Detect binary or text stream ?</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/20315.aspx</link><pubDate>Tue, 14 Nov 2006 06:52:54 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:20315</guid><dc:creator>KelMan</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/20315.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=14&amp;PostID=20315</wfw:commentRss><description>Αν ομώς είναι text και το χειριστείς ως binary δεν έχει καμία διαφορά. Έτσι κι αλλιώς όλα είναι binary σε stream level, απλά όταν έχεις text πρέπει να χρησιμοποιήσεις την System.Text.Encoding για να το γυρίσεις σε κάτι που να έχει νόημα. &lt;br /&gt;
&lt;br /&gt;
Πιστεύω αν δουλέψεις με τη base class, όπως στο snippet, δεν θα έχεις πρόβλημα.</description></item><item><title>Απ: Detect binary or text stream ?</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/20312.aspx</link><pubDate>Tue, 14 Nov 2006 00:58:23 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:20312</guid><dc:creator>Panagiotis Kefalidis</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/20312.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=14&amp;PostID=20312</wfw:commentRss><description>Εννοεί ότι έαν είναι Binary και το γράψει σαν Text , δεν θα παίξει..&lt;br /&gt;
&lt;br /&gt;
At least εγώ αυτό έπιασα &lt;img src="/cs/emoticons/emotion-7.gif" alt="Tongue Tied" /&gt;</description></item><item><title>Απ: Detect binary or text stream ?</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/20310.aspx</link><pubDate>Mon, 13 Nov 2006 23:49:37 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:20310</guid><dc:creator>KelMan</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/20310.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=14&amp;PostID=20310</wfw:commentRss><description>&lt;P&gt;Χμμμ... Τι εννοείς "σωστά"; &lt;/P&gt;
&lt;P&gt;Αν διαβάσεις μέσω ενός byte buffer τα περιεχόμενα του input stream (ό,τι κι αν είναι αυτό binary ή text) και κατόπιν ορίσεις ένα FileStream και πάνω σε αυτό έναν BinaryWriter δεν θα παίξει; &lt;/P&gt;
&lt;P&gt;Πχ&lt;/P&gt;
&lt;P&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt; &lt;br /&gt;&lt;br /&gt;    &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Sub&lt;/span&gt; Streamer(&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;ByVal&lt;/span&gt; s &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; Stream, &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;ByVal&lt;/span&gt; filename &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;String&lt;/span&gt;)&lt;br /&gt;        &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; inputBuffer(10) &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Byte&lt;/span&gt;&lt;br /&gt;        &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; fs &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;New&lt;/span&gt; FileStream(filename, FileMode.Create)&lt;br /&gt;        &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Dim&lt;/span&gt; w &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;New&lt;/span&gt; BinaryWriter(fs)&lt;br /&gt;        &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Try&lt;/span&gt;&lt;br /&gt;            s.Read(inputBuffer, 0, 10)&lt;br /&gt;            w.&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Write&lt;/span&gt;(inputBuffer)&lt;br /&gt;        &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Finally&lt;/span&gt;&lt;br /&gt;            s.Close()&lt;br /&gt;        &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;End&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Try&lt;/span&gt;&lt;br /&gt;    &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;End&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Sub&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description></item><item><title>Detect binary or text stream ?</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/20304.aspx</link><pubDate>Mon, 13 Nov 2006 22:37:54 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:20304</guid><dc:creator>anjelinio</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/20304.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=14&amp;PostID=20304</wfw:commentRss><description>Έχει κανείς καμμιά ιδέα; &lt;br&gt;&lt;br&gt;Γράφω μια μέθοδο η οποία δέχεται σαν παράμετρο ένα stream. Δεν ξέρω @ runtime αν είναι κάποιο text stream ή αν είναι binary, παρόλα αυτά, πρέπει να γράψω τα περιεχόμενά του σωστά σαν text ή binary file στο δίσκο. Any ideas ?&lt;br&gt;</description></item></channel></rss>