<< fread | Stream manager | fscanf >> |
frewind(fid) |
an integer value: file descriptor
frewind puts the pointer at the beginning of file
fileID = fopen([tempdir(), 'frewind.txt'],'wt');
fprintf(fileID, 'son is beautiful.');
frewind(fileID);
fprintf(fileID, 'sun');
fclose(fileID);
R = fileread([tempdir(), 'frewind.txt'])
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET