Writing to a file instead
Always Use pointers. there really aren't reasons to not use them