CODE:
string mFile;
int eCol_Kib, eX_Kib, eY_Kib;
getdisplay(eCol_Kib, eX_Kib, eY_Kib);
File("r", "C:\логин.txt", "Текст", #mFile, "C:\", "file.txt");
function File(string rej, string savefile, string text, string #var, string path, string file)
{
if (rej=="r")
{
string t;
if (fopen (savefile, rej)!=0)
{
while (freadline (t))var=var+t+"^r^n";
fclose();
}
}
else
{
if (fopen (path+file, rej)!=0)
{
fwrite(text);
fclose();
}
}
}
int eCol_Kib, eX_Kib, eY_Kib;
getdisplay(eCol_Kib, eX_Kib, eY_Kib);
File("r", "C:\логин.txt", "Текст", #mFile, "C:\", "file.txt");
function File(string rej, string savefile, string text, string #var, string path, string file)
{
if (rej=="r")
{
string t;
if (fopen (savefile, rej)!=0)
{
while (freadline (t))var=var+t+"^r^n";
fclose();
}
}
else
{
if (fopen (path+file, rej)!=0)
{
fwrite(text);
fclose();
}
}
}