import File ; // Import the standard File library // Get the base path (location of the executable module) string base = getFilePath( "." ) ; println( base ) ; // Outputs the absolute path of the folder where the executable module is located // Get the parent folder string parent = getFilePath( ".." ) ; println( parent ) ; // Outputs the absolute path of the parent folder of the module folder // Get the absolute path of a specific file string file = getFilePath( "test.txt" ) ; println( file ) ; // Outputs the absolute path of test.txt located in the same folder as the module // Convert a relative path to an absolute path string rel = getFilePath( "./bbb/test.txt", "../aaa" ) ; println( rel ) ; // Outputs the absolute path to bbb/test.txt, relative to the ../aaa folder from the module