Text Stream

Results 1 to 2 of 2

Thread: Text Stream

  1. #1
    Marina Soutorikhina Guest

    Default Text Stream

    I cannot open text file as a text stream. I use code from 4guysfromrolla.com "Reading/Writing Text Files Using ASP". The first part-reading worked but the second part - writing did not. What should I do? Help, please.<BR>The code is:<BR>Dim fso, f <BR>Set fso = CreateObject("Scripting.FileSystemObject")<BR>Set f = fso.OpenTextFile("c: est.txt", ForAppending, True)<BR>f.Write "Hello world!" TextStreamTest = ts.ReadLine<BR><BR><BR><BR>Do While not ts.AtEndOfStream<BR> myText = myText & ts.ReadLine & vbCrLf<BR>Loop<BR><BR>I get msg:<BR>Invalid procedure call or argument<BR>/ActiveX/FileObj1.asp, line 10<BR>

  2. #2
    Join Date
    Dec 1969
    Indianapolis, IN

    Default REPOST

    Please don&#039;t clutter the board. Stick to your original thread.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts