Re: [RESOLVED] Parsing Text
You're welcome. Strongly recommend, if not already done, adding some error checking. What if the text gets garbled and there are not the same number of columns per line? What if you are missing a prefix of Dirs, Files, Bytes? The latter is easy to check, read the 3 lines first before processing them, check to see if they exist. The former is a bit more complicated and one idea is to cache the number of columns when the Dirs line is processed. If the Files and/or Bytes lines do not come up with the same number of columns, then roll back/undo the array changes and print to an error log. Just some thoughts.