Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Are all raw text files created equally?
Message
De
29/04/2004 09:44:15
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
29/04/2004 09:30:15
John Vlahos
V I Software Solutions Design
Mississauga, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00899303
Message ID:
00899307
Vues:
16
Text-files don't have any special header, so this should not be the problem.

There may be a difference in the end-of-line marker. The official separator is chr(13) + chr(10). However, some programs might use only chr(13), or only chr(10).

To check this theory - or see what other differences there might be, you would need a hex editor.

I think you can find one somewhere amongst the utilities that come in the VFP directory. Or perhaps it needs to be installed separately.

Otherwise, check www.download.com - you should probably find a free hex editor there.

>I have two different utilities (one written in VFP and one written in VB) which create the same basic sequential text file. Records exported are taken from the same table.
>
>When I try to import the text file from the main application, one file gets imported. Attempting the same import to the second file fails...invalid file for no apparent reason. I visually compared the files and I see no diffenrence (bytes are equal).
>
>I do not have access to the source code of the two utilities...
>
>Could the files be different?...and if yes, is there a tool that allows me to find the differences?
>
>Thanks.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform