我想永远读取一个文件我怎样才能转到文件的开头
这是我的代码
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
}