Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Viewing and editting text files
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00533279
Message ID:
00533329
Vues:
17
I still do not understand how all three editors managed to keep my logical records displayed asstarting as the first character on a line.

How is a good way for me to delete two character from the middle of a logical line and then add two character to the end? I can not to that in a reasonable amount of time in hexedit. I only have 6 records.

brenda

*********************

>Each program that edit files will handle spaces (hex'20' = ascii 32) different >from the others. Each of them tries to make the life of the editor easier by >adding (or removing) blank characters and lines. For example, some editors >will read your file and append some "virtual" blank likes. Other won't do >this. Not to mention line feed and carriage return...each of them may handle >this different.
>
>In my opinion, you cannot rely on editors to really view the content of a file >like the one that you have. Only viewers -like Hexedit- will give you the real >content of the file.

*********************

>>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.
>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform