fseek and byte

Introduit en 2009b et toujours présent en R2011a , il s’agit du mot byte qui est mal écrit (btye):

fseek

En fait l’exemple pour fseek a changé entre la R2009a et la R2009b.

En R2009a voici l’exemple:

Examples

This example opens the file test1.dat, seeks to the 20th byte, reads fifty 32-bit unsigned integers into variable A, and closes the file. It then opens a second file, test2.dat, seeks to the end-of-file position, appends the data in A to the end of this file, and closes the file.

fid = fopen(‘test1.dat’, ‘r’);
fseek(fid, 19, ‘bof’);
A = fread(fid, 50, ‘uint32′);
fclose(fid);

fid = fopen(‘test2.dat’, ‘r+’);
fseek(fid, 0, ‘eof’);
fwrite(fid, A, ‘uint32′);
fclose(fid);

J’ai remonté cette erreur de documentation mardi 3 mai 2011 au support technique de TMW.

Laisser un commentaire