Can you give some more details about what you are trying to do? For example post a sample of the program's input and the desired output.

Also post the code you have that is attempting to solve...