GetProjectDirectory

This function returns the directory where the current project is located. Will returns an empty string if the project has not been saved yet.

🔁 Function

void GetProjectDirectory();

⚙️ Parameters

None

↩️ Return Value

A string that contains the directory where the current project is located. The directory will end with a folder separator.

Example: C:\Temp\

📝 Example

var dir = GetProjectDirectory();
var handle = OpenFileForReading(dir + "ChutesMap.csv");