Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Text file problem
Message
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00413222
Message ID:
00414232
Vues:
25
>I'm not lightning on this one...
>I have found part of my problem.
>The file that I'm reading, is structure the way that each record is on a new line.
>To resolve my problem, (read and get to EOF), I have just remove all carriage return and put all the data on 1 single line.
>Then, if I had my line, everything is perfect.
>
>But my problem is, I have to write to this text file the way that it was:
>Each record on a new line.
>
>How to include the carriage return when reading/writing.
>

I think that it will be easier if you use FSO.

See http://msdn.microsoft.com/library/default.asp?URL=/library/devprods/vs6/vbasic/vbenlr98/vamthopenastextstream.htm and look at the ForAppending parameter.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform