Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Viewing and editting text files
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Viewing and editting text files
Divers
Thread ID:
00533279
Message ID:
00533279
Vues:
44
I have a text file that is input to my application. It is a file that has logical records, but it does not have any carriege control or new lines. I have looked at it in Hexedit. I do FREAD to read it into my application. There will be a modification to the file and a file will be increased from 5 to 7 bytes. There are 95 hex'20' at the end of each logical record and that will be decreased to 93.

I want to test my program changes so I copied a file from a client site and was going to edit it to add the two extra bytes of text in the middle and delete two bytes of from the end. But WordPad, Notepad, and VFP all show the file differently. And Wordpad even inserted characters at the end of each logical record.

How does all three of these applications know about my logical records?

In VFP it does not appear that there are 97 hex'20' at the end of each record. There are only about 35 spacebar characters at the end of the file. When I press the delete key from the middle of the file, only the bytes from that VFP "line" move to the left. I would expect the entire file from that point to move to the left since I am deleteing two bytes from the middle.

Just very confused about text files and how they are represented in VFP (File, Open) and other text editors. Does the 97 bytes of hex'20' do something special. VFP always starts a new logical "record" in the first position of a line, even though there are no carriege control or line feeds. No matter how I resize the window, the first character of a logical record is displayed in the first character of the displayed line.

Know I am babbling but there is so much I do not understand about this.

Brenda
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform