- end while not (file.eof or (/[\s]*Len[\s]*=.*/.match(lb)))
- len = /[\s]*Len[\s]*=[\s]*([0-9]*)/.match(lb)[1].to_i
- puts("DBG sending: "+lb) if $debug
- return if file.eof
+# printf("DBG info: file read: %s", lb)
+ end while not (file.eof or (/[\s]*Len[\s]*=/.match(lb)))
+# puts("got ya")
+ if file.eof
+ file.close()
+ return nerrors
+ end
+ len = /[\s]*Len[\s]*=[\s]*([0-9]*)/.match(lb)[1].to_i