| |||
protected void ArquivoCarregar (string ANome)
{
StreamReader SR;
string Nome;
Nome= Request.PhysicalApplicationPath + ANome;
using (SR= new StreamReader (Nome, true)) {
Saida.Text= SR.ReadToEnd ();
SR.Close ();
}
}
protected void ArquivoGravar (string ANome)
{
FileInfo FI;
StreamWriter SW;
string Nome;
Nome= Request.PhysicalApplicationPath + ANome;
FI = new FileInfo (Nome);
using (SW= FI.CreateText ()) {
SW.WriteLine (Entrada.Text);
SW.Close ();
}
}
|

