Where do I put the csv to make sure it writes correctly?

My file will take some submitted data and write it to a csv file. I have my csv file in the same directory as my file, but it does not write the data to it. Where should I be putting the csv file?

Try using full path to the csv, instead of a relative one (which, I assume, you currenlty have).