Information générale
Catégorie:
Codage, syntaxe et commandes
>I can't do a FGETS() because it will only hold 254 characters.
Not exactly; 254 is the max if you don't sepcify a "max" up to the Carriage Return.
If all lines in the file are not more than, say, 300 bytes, then you can:
m.cBuff = FGETS( m.nHandle, 300 )
which will retrieve 1 line at a time, up to the next CR, as long as the line is not greater than 300 bytes (otherwise, you only get the next 300 bytes).
Précédent
Suivant
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