Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Equivalent VB function for FREAD, FOPEN, FWRITE of VFP..
Message
From
31/03/2000 08:31:38
 
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00353138
Message ID:
00353248
Views:
15
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform