Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inserting text using low level techniques
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00156635
Message ID:
00156681
Vues:
34
Pete,

create cursor temp (cLine c(80))
append from TheFile.txt type sdf
insert your text as a record
copy to TheFile.txt type sdf

You may need a scan loop and a second cursor to actually insert the row you want. But that code works very fast.

You can also use a memo:
create cursor temp (mText m)
append blank
append memo mText from TheFile.txt
modify the memo
copy memo mText to TheFile.txt


>does anyone know how to insert text at a specified point using Fopen, Fread etc?
>
>e.g.
>line1
>line2
>line3
>line4
>
>I want to insert newline line in between line2 and line3
>
>end result
>line1
>line2
>newline
>line3
>line4
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform