C
CJ
Newbie here.
Trying to tackle following:
Read text file containing list of files delimited by end of line
chars.
I need to somehow write a loop that filters out each of the lines of
text within the text file as a filename to which I can then apply a
number of functions.
I've thought of:
FILE *into_filePointer;
char file_name[256];
into_filePointer = (<my-textfile>, "r");
fscanf (into_filePointer);
.... that's where I lack understanding... How can I draw out line by
line.
I'd like to do a loop:
while (into_filePointer != EOF)
create filename1
.....
on next loop
create filename2
etc.
Any help would be appreciated.
Trying to tackle following:
Read text file containing list of files delimited by end of line
chars.
I need to somehow write a loop that filters out each of the lines of
text within the text file as a filename to which I can then apply a
number of functions.
I've thought of:
FILE *into_filePointer;
char file_name[256];
into_filePointer = (<my-textfile>, "r");
fscanf (into_filePointer);
.... that's where I lack understanding... How can I draw out line by
line.
I'd like to do a loop:
while (into_filePointer != EOF)
create filename1
.....
on next loop
create filename2
etc.
Any help would be appreciated.