I noticed there is no method to get size of file using io classes from
file_pov.cpp. I wonder it is not implemented becouse there was no need for it
yet or becouse it can't work or becouse there are better ways to do it ?
Waiting for answer I have adjusted it for my purposes this way:
file_pov.h
class pov_io_base
{
public:
......
long fsize(void);
......
}
file_pov.cpp
......
#include <io.h>
......
long pov_io_base::fsize (void)
{
return (filelength(fileno(f))) ;
}
Is it a correct way according to intentions of io classes ?
ABX
Post a reply to this message
|