Looping Conduct

Results 1 to 2 of 2

Thread: Looping Conduct

  1. #1
    Join Date
    Dec 1969

    Default Looping Conduct

    Is this bad coding:Do Until result.EOF<BR> Dim objTextStream<BR> FilePath = Server.MapPath("/marsh2k/rants/" & result(3) & ".txt") Set objTextStream = objFSO.OpenTextFile(FilePath, fsoForReading)<BR> Response.Write "" & objTextStream.ReadAll & ""<BR> objTextStream.Close<BR>Loop<BR><BR>(The declaring the variable in the loop and closing and reopening each time that it is used?)<BR><BR><BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Looping Conduct

    I suppose if you are reading from ultiple file based on the recordset it is OK<BR><BR>but why the ""& before and after the objTextStream.ReadAll, they serve no purpose<BR><BR>I would think you would want <BR>Response.Write objTextStream.ReadAll & "&#060;P&#062;" & vbcrlf<BR><BR>

Posting Permissions

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