Is there an easy way to create a loop that reads files until there are no more files in a given folder (without knowing the file names or how many are in the folder)? So maybe a program that would return the first line of each file. Also, is there a way to restrict the program to only consider *.html? Thanks
i intrested in it too plz :) help i tryed to system(copy *.html c:\\here\\
but i dont know how to search and i dont know how can i "go" in 2 words folders cause he couldnt go in if i say to : copy c:\\one two\\ it doesnt know ?one two? cause of space
This is unrelated to traversing directories, but to pass arguments with special characters (such as spaces) in them, surround them with quotes. This works on any shell.