hai all,
i had read a file using ----
{
int i =open (char* ,O_RDONLY );
.
.
close(i);
}
every thing works fine in QT except 'close(int)' it says That widget class dont have a function int close(int);
it have only bool close () ,
but i need to do the close(int) itself which is from <unistd.h>
i hve tried using namespace unistd; but didint work
is that the correct format ?
or any other way to use close();
i had read a file using ----
{
int i =open (char* ,O_RDONLY );
.
.
close(i);
}
every thing works fine in QT except 'close(int)' it says That widget class dont have a function int close(int);
it have only bool close () ,
but i need to do the close(int) itself which is from <unistd.h>
i hve tried using namespace unistd; but didint work
is that the correct format ?
or any other way to use close();
Comment