Source: http://ufrsciencestech.u-bourgogne.fr/licence2/Info42/SupportsCours/CH6-FichiersEtFlux.pdf