Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

frewind

Move file position indicator to beginning of open file

Syntax

frewind(fileID)

Description

frewind(fileID) sets the file position indicator to the beginning of a file. fileID is an integer file identifier obtained from fopen.

If the file is on a tape device and the rewind operation fails, frewind does not return an error message.

Alternatives

frewind(fileID) is equivalent to:

fseek(fileID, 0, 'bof');

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Introduced before R2006a

Was this topic helpful?