can anyone help me to read an input file of text into a char array in C. whenever i am doing fscanf(...)!=EOF ...it hangs ... anyone with working CODE... ??
Read input file into an array in C?
are you input text to the file ?????
if so you can use
fputc(ch,ft)
if you want to read input file into a c array
ch=fgetc(ft)
where ch is the char array and ft is the file pointer
or
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment