Filesize
#1

How can I get filesize in bytes on Linux?
I want to see file size while server is recording player's data.

here is the code I've made:
format(form, 256, "stat -c %ss scriptfiles/%i.rec", "%%", playerid);
system(form, string, sizeof(string));

When I run this code, server crashes?!

I tryed checking filesize from ssh with same command and it works fine.

Please help me fix this code or find other option to get filesize.
Reply


Messages In This Thread
Filesize - by sebacol - 25.04.2011, 20:55
Re: Filesize - by sebacol - 26.04.2011, 11:50

Forum Jump:


Users browsing this thread: 1 Guest(s)