The Conroy & Conroy Subroutine Library (2021.3 edition)

File_Split
What: boolean function
File:
Layer: 1
Format: File_Split( Name, S1, S2, S3 )
Platforms: C++, C#, JS, Pascal, PHP, Python

This function parses a file specification into three parts, which are returned in S1, S2, and S3. The first part is the device and path. The second part is the filename. The third part is the file extension.
In Javascript and Python, this function ignores the S1, S2, and S3 parameters. It returns an array containing the file fields: element 0 is the device and path, element 1 is the filename, and element 2 is the file extension.