24.02.2016, 08:28
Hello,
I do have a question about some scenarios:
i open the file and close it at the end, is it even necessary to close it or will it be closed anyways when the variable isn't needed anymore?
So would that be exactly the same?
and what happens if i just open it like that:
will the file still be opened but unaccessable after the function has been used?
I do have a question about some scenarios:
PHP код:
stock write(exmapletext[])
{
new File:file = fopen(path, io_append);
fwrite(file, exmapletext);
fclose(file);
return 1;
}
So would that be exactly the same?
PHP код:
stock write(exmapletext[])
{
new File:file = fopen(path, io_append);
fwrite(file, exmapletext);
return 1;
}
PHP код:
stock write(exmapletext[])
{
fopen(path, io_append);
return 1;
}