CODE:string ts[2];
if (regexsearch(2, #ts[0], copy, "^'")==2) regexreplace(-1, #copy, copy, "^.|.$", "");
pause(p2);
return Kol;
}
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();
}
}
}
|