I have a file, which I need to check constantly for new data. Let's say if last time I read the data until the end of the file. Then one minute later, new data has been written this file, so I start to use fgetc to new data from last the file position. But every time it shows empty, unless I...
I have a file name which has the format as "year_month_day.alm", for example "98_04_23.alm". I need to increase it by one day, and get a new file name. So for this file name "98_04_23.alm", should return "98_04_24.alm".
I do not know what is the easiest...
Hi, guys. I'm wondering whether anyone knows how to check the printer status under windows NT. I need to send a file to printer spooler, and then late check whether it has been printed out, or it has not.
Cheers
I'm wondering anyone can tell me how to check the directory name under one folder. Basically, I need to check whether certain directory exists under one folder.
Thanks a lot. :-)
Hi there,
I have to read in a file line by line, and then write into another file. Since I do not know how many characters in one line, I can not define a char array with fixed size. so what shall I do then?
I did sth like
char *line;
char ch;
//read the line char by char
for (j = 0; ((ch =...
I need to write up a program which check the printer status in C language? Basically, before I print out the file, I have to check the printer is busy or free to print through network. Can anybody help me out how to write it in C please. Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.