MATLAB Function Reference
  Go to function:
    Search    Help Desk 
frewind    See Also

Rewind an open file

Syntax

Description

frewind(fid) sets the file position indicator to the beginning of the file specified by fid, an integer file identifier obtained from fopen.

Remarks

Rewinding a fid associated with a tape device may not work even though frewind does not generate an error message.

See Also

fclose      Close one or more open files

ferror      Query MATLAB about errors in file input or output

fopen       Open a file or obtain information about open files

fprintf     Write formatted data to file

fread       Read binary data from file

fscanf      Read formatted data from file

fseek       Set file position indicator

ftell       Get file position indicator

fwrite      Write binary data from a MATLAB matrix to a file



[ Previous | Help Desk | Next ]