i have pulled out a whole website and it has over 100 files
the problem is that the hyperlinks of that file are to the internet
(having http:// .. .. /something.htm) I want to remove all that
and put just the file (for eg. something.htm)
All the HTML files have the same path to some extent, but
just the filename changes ... so i know exactly what to remove
(http:// .. ..... thing)
instead of painfully doing "Replace" for each
file in notepad and getting bald , i want to write a simple
C program that can do this..
I know how to open files
fp = fopen("filename.htm", "a+")
but here, i have to specify the filename... and i have to do this
for 100s of files...
so how do i make a for loop or something that opens all the files
in a specified directory (say, the same directory as the EXE)
and edit them one by one ...
i hope i made my question clear ..