>I am trying to read a long string from a .txt file using FGETS, and it is not returning the entire line. Is there a limit of characters that FGETS will return, and if so, is there a way I can get around that? TIA!
>
By default, FGETS() stops at 254 characters. To read more, pass the number of bytes to read as the 2nd parameter.
An alternative approach is to use FileToString() to read the whole file and then break it up with ALINES().
Tamar
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement