Jedno pitanjce koje nije u direktnoj vezi sa pisanjem programa za mail ali neka veza postoji pa evo pitanja > Kako da sledeci kod prebacim da cita iz string-a a ne iz fajla(ovaj kod sam napisao ali nisam imao vremena da se bakcem sa string-om).Ako neko(bilo ko) zna kako nek napise.
HVALA unapred
Code:
void Display()
{
int next;
System.IO.StreamReader sr;
reklama.Text = String.Empty;
sr = File.OpenText("C:\\Documents and Settings\\IQooLogic.NT.018\\Desktop\\Tiny e-mail\\display.txt");
try
{
next = sr.Read();
while (next != -1)
{
reklama.Text = String.Concat(reklama.Text,Convert.ToChar(next));
next = sr.Read();
reklama.Refresh();
Thread.Sleep(8);
}
}
catch
{
}
finally
{
if (sr != null)
{
sr.Close();
}
}
}
void Display()
{
int next;
System.IO.StreamReader sr;
reklama.Text = String.Empty;
sr = File.OpenText("C:\\Documents and Settings\\IQooLogic.NT.018\\Desktop\\Tiny e-mail\\display.txt");
try
{
next = sr.Read();
while (next != -1)
{
reklama.Text = String.Concat(reklama.Text,Convert.ToChar(next));
next = sr.Read();
reklama.Refresh();
Thread.Sleep(8);
}
}
catch
{
}
finally
{
if (sr != null)
{
sr.Close();
}
}
}
HVALA unapred
Potpis
if(torrent == "free" && windows == true)
{
InstallOnComputer(Expensive_Software);
}
else goto Linux;
{
InstallOnComputer(Expensive_Software);
}
else goto Linux;