I don't know how to code a function that browse a file with a specific modulo.
Example, if I have 3 as modulo and a file is containing :
abcdefghijk
then, my function should returns :
adgj
My code of the function:
char f1(char* name_file, int modulo)
{
char characters_ok[];
unsigned char character_read;
fileToOpen=fopen(name_file,"r");
do
{
character_read=fgetc(fileToOpen);
//and I don't know what to write...
}
while(!feof(fileToOpen));
fclose(fileToOpen);
return characters_ok;
}