Re: I need HELP!!!



sjftan@xxxxxxxxx wrote:

i give u some relative function on file operate.

FILE * fp;
char ch;

fp = fopen("url/name","r");//open the file R

ch = fgetc(fp); // get a char from the fp;

fclose(fp); // close the file ;

i hope it can help u.

1. leave context in your post. That is, quote what you are replying to

2. please post in standard english. The last line of your reply should
read "I hope it can help you" or "I hope this helps you".

3. you do not check for errors in your fopen() call


--
Nick Keighley

A ruby trembled. Two tourmaline nets failed to rectify the laser beam.
A diamond noted the error. Both the error and the correction went into
the general computer.
Corwainer Smith "The Dead Lady of Clown Town"

.



Relevant Pages