in reply to Re^2: Comma seperated output
in thread Comma seperated output

From your description, I can't see a real list of things that the program should do, in order. I interpret your sentences as the following sequence of things to be done:

  1. Read through the file line by line
  2. Whenever there is a "value"
    1. Collect that "value".

If my interpretation is wrong, please write your own list of what the program should do. Please try to structure that list like I did, by formatting it for example with <ol><li>... tags or <code> tags, so it becomes conveniently readable.

If my interpretation of your description matches what you want, look at your code and determine where your code does not match the description and write new code that matches the description.