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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only