I am generating a PDF with the handy iText for C#. Now, I basically just need to generate this PDF and e-mail it. At the moment I can generate the file in PDF, but I don't want to hardcode a path to save the file. Example, I am saving the file like this:
string file = "C:\\Receipts\" + ConfirmationNumber + ".pdf";
Now, hardcoding a path like that is completely against best practices. How can I save the file properly, following best practice? Maybe to a folder inside the project itself? Thanks for any help.