03.07.2017, 12:29
PHP код:
stock Ler(name[]) //ipsLuan
{
new linha[128 +1],File:arquivo;
arquivo = fopen(name, io_read);
while(fread(arquivo, linha))
printf("* %s",linha);
fclose(arquivo);
}
stock Escrever(name[], text[]) //ipsLuan
{
new linha[128 +1],File:arquivo;
format(linha, sizeof(linha), "%s\r\n", text);
arquivo = fopen(name, io_append);
fwrite(arquivo, linha);
fclose(arquivo);
}
