EAGLE Help
Filename Functions
-
Function
-
Split a filename into its separate parts.
-
Syntax
-
string filedir(string file);
string fileext(string file);
string filename(string file);
string filesetext(string file, string newext);
-
Returns
-
filedir returns the directory of file.
fileext returns the extension of file.
filename returns the file name of file (including the extension).
filesetext returns file with the extension set to newext.
See also Filedata Functions
If a filename has been split into its three separate parts, these parts can
be put together again with the
+ operator
to form the original full filename.
Example
if (board) board(B) {
output(filesetext(B.name, ".OUT")) {
...
}
}
Index
|
Copyright © 2003 CadSoft Computer GmbH
|