Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File manipulation
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00273206
Message ID:
00273249
Vues:
29
Do you VFP 6.0? This might work:

lcText = FileToStr( lcFileName )

lcText = STRTRAN(lcText, "1999", "99")
lcText = STRTRAN(lcText, "0000", "")

StrToFile(lcText, lcFileName)

>Can anyone tell me how to do low level file manipulation in VFP? I have a file with row after row that looks something like this:
>
>01010212199909380000098463
>
>And I need to make it look like this:
>
>01010212990938098463
>
>Another tricky part is that the first line in the file is a header that's different from the rest.
>
>Thanks,
>
>Michelle
Chris McCandless
Red Sky Software
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform