Information générale
Catégorie:
Codage, syntaxe et commandes
Use FSEEK() to get to the end of the file then read bytes backwards from the bottom of the file until you get to just before carriage return then do two FGETS(), the second one will be the last line.
>Hi,
>
>Does anyone know the easiest way to go to the bottom of a text file and read just the last line, no matter how many characters long it is? I am using VFP6. Thank you
>
>Tim
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