btidey wrote:Also you should't be using a return statement in the void function getFileName . You are using a global for filename so the attempted return is not needed.
It makes it clearer if you name the functions according to their purpose so getFileName would be a String or char* function that did actually return the filename whereas makeFileName would be a void that did set up the name like your function does.
Thanks for the reply. I was not sure it was passing "filename" back out of the function, and the naming came out of the example so I just ran with it.
Any comments on how to name my log file with the contents of "filename"