saving a copy of standalone's output_log.txt

I would like to save a unique copy of output_log.txt when the player exits my game.

What would be the best way to do this? Application.dataPath and the other Application._____Path properties don’t really get me into the right folder. Can anyone recommend an easy way of finding this file on the user’s computer?

Would using Application.dataPath combined with going back a folder get you to the correct location?

Note: I would assume this works on Windows but I’m doubtful for any other platform.

ya sorry, i realized that Application.dataPath is what I need to get started on this, I think. That seems to point to the exact folder the output_log file is in (on windows, at least. which is my only build target so i’m good here). I think I got a little mixed up when I was testing in the editor, but on a standalone build it seems to be correct.

Thanks!

Sweet! I actually forgot whether it was with the exe or within the Data folder so its handy to know.