Reading text file

Results 1 to 2 of 2

Thread: Reading text file

  1. #1
    Join Date
    Dec 1969

    Default Reading text file

    When I read data from a text file using readline I get a scripting error if the data field is empty. See below<BR><BR><BR>&#060;--------Some Code ---------&#062;<BR> For i = 1 to 20 <BR> line = infile.ReadLine<BR> words = Split(line, " ")<BR> workorder = words(0)<BR> emp = words(5)<BR> waybill = words(2)<BR> Response.write workorder<BR> next <BR>&#060;------more code -------&#062;<BR><BR> How do I keep the code going if it runs across this error?<BR>

  2. #2
    Join Date
    Dec 1969

    Default On error resume next <nm>


Posting Permissions

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