Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Equivalent VB function for FREAD, FOPEN, FWRITE of VFP..
Message
De
31/03/2000 08:31:38
 
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00353138
Message ID:
00353248
Vues:
16
To add to Éric suggestion, you may also take a look at WSH. Here is a small example to create a file and write a simple line in it:

Dim FileSystemObject as Object, loLogFile as Object
Set FileSystemObject = CreateObject("Scripting.FileSystemObject")
Set loLogFile = FileSystemObject.CreateTextFile("C:\Test.TXT", True)
loLogFile.WriteLine "Test"
loLogFile.Close
Set loLogFile = Nothing
Set FileSystemObject = Nothing

You have to check "Microsoft Script Control 1.0" in Project|References before using that example.

HTH
>I want to manipulate a text file with 5 rows using VB. In VFP, I used FREAD, FOPEN, and FWRITE, how to do this in VB.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform