|
-
Mar 8th, 2010, 12:39 AM
#1
Thread Starter
New Member
Grabage Values getting updated while writing to text file
Hi,
Here is my code.
I am writing the temp.txt file with the values selected by the user. But in the backend some garbage values are also getting updated. Can Any one help me pls..
Dim fs As New FileSystemObject
Dim stxtStream As TextStream
If fs.FileExists(sHomeDirectory & "\Test Lab\Temp\Temp.txt") = False Then
fs.CreateTextFile sHomeDirectory & "\Test Lab\Temp\Temp.txt"
End If
Set stxtStream = fs.OpenTextFile(sHomeDirectory & "\Test Lab\Temp\Temp.txt", ForAppending, True, TristateTrue)
For i = 0 To List1.ListCount - 1
stxtStream.WriteLine List1.List(i)
Next
stxtStream.Close
Written Value :\Cupps\Test Scripts\Cupps 1\Authenticate\Authenticate.txt
Value updated:ÿþD:\Cupps\Test Scripts\Cupps 1\Authenticate\Authenticate.txt
Thanks,
Karthick.M
-
Mar 8th, 2010, 08:12 AM
#2
Re: Grabage Values getting updated while writing to text file
Need more explanation. What garbage values? Where?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|