Results 1 to 2 of 2

Thread: Grabage Values getting updated while writing to text file

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2010
    Posts
    3

    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

  2. #2
    PowerPoster
    Join Date
    Oct 2008
    Location
    Midwest Region, United States
    Posts
    3,574

    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
  •  



Click Here to Expand Forum to Full Width