 
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.adonaimedrado.pro.br/wiki/index.php?action=history&amp;feed=atom&amp;title=CSharp%3A_AulaDemoDll.NamespaceE.LeitorDeArquivos</id>
		<title>CSharp: AulaDemoDll.NamespaceE.LeitorDeArquivos - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://www.adonaimedrado.pro.br/wiki/index.php?action=history&amp;feed=atom&amp;title=CSharp%3A_AulaDemoDll.NamespaceE.LeitorDeArquivos"/>
		<link rel="alternate" type="text/html" href="https://www.adonaimedrado.pro.br/wiki/index.php?title=CSharp:_AulaDemoDll.NamespaceE.LeitorDeArquivos&amp;action=history"/>
		<updated>2026-05-27T19:06:44Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>https://www.adonaimedrado.pro.br/wiki/index.php?title=CSharp:_AulaDemoDll.NamespaceE.LeitorDeArquivos&amp;diff=824&amp;oldid=prev</id>
		<title>Adonaimedrado: New page: &lt;code lang=&quot;csharp&quot;&gt; using System; using System.IO; using System.Text;  namespace AulaDemoDll.NamespaceE {     public enum Modo { MaisSimplesPossivel, PoucoMenosSimples};      public stati...</title>
		<link rel="alternate" type="text/html" href="https://www.adonaimedrado.pro.br/wiki/index.php?title=CSharp:_AulaDemoDll.NamespaceE.LeitorDeArquivos&amp;diff=824&amp;oldid=prev"/>
				<updated>2008-11-18T20:30:05Z</updated>
		
		<summary type="html">&lt;p&gt;New page: &amp;lt;code lang=&amp;quot;csharp&amp;quot;&amp;gt; using System; using System.IO; using System.Text;  namespace AulaDemoDll.NamespaceE {     public enum Modo { MaisSimplesPossivel, PoucoMenosSimples};      public stati...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;code lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
using System;&lt;br /&gt;
using System.IO;&lt;br /&gt;
using System.Text;&lt;br /&gt;
&lt;br /&gt;
namespace AulaDemoDll.NamespaceE&lt;br /&gt;
{&lt;br /&gt;
    public enum Modo { MaisSimplesPossivel, PoucoMenosSimples};&lt;br /&gt;
&lt;br /&gt;
    public static class LeitorDeArquivos&lt;br /&gt;
    {        &lt;br /&gt;
        public static string ExecutarLeitura(string arquivo, Modo m)&lt;br /&gt;
        {&lt;br /&gt;
            switch (m)&lt;br /&gt;
            {&lt;br /&gt;
                case Modo.MaisSimplesPossivel:&lt;br /&gt;
                    return File.ReadAllText(arquivo);&lt;br /&gt;
                case Modo.PoucoMenosSimples:&lt;br /&gt;
                    using (FileStream fs = new FileStream(arquivo, FileMode.Open))&lt;br /&gt;
                    {&lt;br /&gt;
                        StringBuilder b = new StringBuilder();&lt;br /&gt;
&lt;br /&gt;
                        byte[] buffer = new byte[256];&lt;br /&gt;
                        while (fs.Read(buffer, 0, buffer.Length) &amp;gt; 0)&lt;br /&gt;
                        {                            &lt;br /&gt;
                            b.Append(System.Text.Encoding.Default.GetString(buffer));&lt;br /&gt;
                            buffer = new byte[256];                        &lt;br /&gt;
                        }&lt;br /&gt;
                        return b.ToString();&lt;br /&gt;
                    }                    &lt;br /&gt;
                default:&lt;br /&gt;
                    throw new Exception(&amp;quot;Isto deveria ser impossível.&amp;quot;);&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Adonaimedrado</name></author>	</entry>

	</feed>