logic to parse bouy text file