Change location of binary file created when saving

Hey, I’m making a game that saves high scores, I want said high scores to go alongside the game wherever, so I want them in the same foldier as the .exe files is.

I saw the tutorial on Unity about saving, it all works fine, issue is this line of code

FileStream file = File.Create(Application.persistentDataPath + "/rankings.pac");

Where is the rankings.pac file being saved? And how do I change it so its in the same path as the .exe file.

If you google for “unity persistent datapath”, it leads to official documentation: Unity - Scripting API: Application.persistentDataPath. Basically it is different location depending on the selected target platform.

There are threads about this issue, like this one: Location of Application.persistentDataPath ? - Questions & Answers - Unity Discussions

Edit: however, I’m not sure if you will be able to save to any directory you want.