How to walk through folders?You can't compare in this way pabaiga!=pavadinimas here is a simple function to compare arrays: [...
how to create a fileYou forgot outfile.open();
How to include a linux command in a C programme?It's not so hard just put file name to char args[32]; Good luck :-)
How to include a linux command in a C programme?You can glue strings: [code] char args[32]="fileName.txt"; //put your file name here char program...
Opening a file issueTry char *filename instead of char filename[10] and change "filename" to filename