Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FGETS to go backwards
Message
De
30/07/2003 16:12:20
 
 
À
30/07/2003 15:59:53
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00815089
Message ID:
00815105
Vues:
12
>How big a file ?
>
>I often read an entire text file into an array and do my processing in there.

We have a program that goes though all our source code, over 2500 files, and searches for a string. It creates a text file that contains the entire command that the string is in and the line number in the code that its on. It would be nice to have the text file have the line numbers going from bottom to top so if we modify line it doesn't though off the rest of the line numbers when we find the next match. Maybe it's easier to write the text file in desending order than go backwards in a file. The other thing is that we have the option to print X number of lines before and after the find. So I always have to go back to find the X number of lines before hand. This program is make use of the low level file function for almost all of the searching and it would be a big deal to turn it into an array based - plus I don't know how much of a proformace hit it would take.

Just as a side note, because of this program I hate the "Code Reference" program in VFP 8. Our program takes 2 minutes to run though the entire list while I have never had the enough time to wait for the "Code Reference" to finish.
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform