https://wiki.sei.cmu.edu/confluence/display/c/FIO19-C.+Do+not+use+fseek%28%29+and+ftell%28%29+to+compute+the+size+of+a+regular+file :Ben mince, je ne savais pas ça... et si j'en crois le reste de la page, la seule solution pour déterminer la taille d'un fichier, c'est de faire appel à une fonction de l'OS (donc non portable)... Vive le C
Seeking to the end of a binary stream in binary mode with fseek() is not meaningfully supported and is not a recommended method for computing the size of a file.