Unless you're targeting something really ancient like Windows 98, always use forward slashes. All modern operating systems including Windows support forward slashes in paths. Only Windows support backlashes, so using backslashes reduces the portability of your code.
@OP: Try opening an output file stream and seeing where it creates the file at - that is where the input file needs to be too.