ファイルのR/Wポインタを移動します。
FRESULT f_lseek ( FIL* FileObject, // ファイルオブジェクト構造体へのポインタ DWORD Offset // 移動先オフセット );
ファイルR/Wポインタを移動します。オフセットの指定はファイル先頭からのみです。ファイル末尾以降への移動はできません。ファイルサイズ以上のオフセットを指定した場合、R/Wポインタはファイル末尾に移動します。
// Move to offset of 5000 from top of file.
res = f_lseek(&file, 5000);
if (res) die(res);
// Move to 3000 bytes front of current offset.
res = f_lseek(&file, file.fptr + 3000);
if (res) die(res);
// Move to 2000 bytes back of current offset.
res = f_lseek(&file, file.fptr - 2000);
if (res) die(res);