Я хочу, чтобы прочитать файл навсегда, как я могу перейти в начало файла
Вот мой кодПерейти к началу файла
FILE* inp_file=fopen("Input_file.bin","rb");
uint8* buffer;
buffer=(uint8*)malloc(nSize);
uint32 nSize =1000;
while(1)
{
while(! feof (inp_file))
{
memset (buffer,'0',nSize);
fread (buffer,nSize,1,inp_file);
Sleep(5);
}
//Here I want to go to the beginning of the file
}
http://stackoverflow.com/questions/5431941/while-feof-file-is-always-wrong –
'человек fseek' ... –
использование' недействительной перемотки (FILE * stream); ' –