Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FGETS to go backwards
Message
De
30/07/2003 17:08:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
30/07/2003 15:49:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00815089
Message ID:
00815135
Vues:
14
>Is there a way to make FGETS go backwards? I created my own function call FBACKS which uses FREAD with a negitive 1 until I hit a chr(13) or chr(10) but wanted to know if there is a better way. I basicly want to read from the file bottom to top NOT top to bottom as most low level files assumes.

I think this would be the basic approach. You might get a better spead if you read in 100, or 1000, bytes at a time, and keep it in a buffer, but this must be tested.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform