EAGLE Help Light

Filename Functions

Funkce
Split a filename into its separate parts.

Zápis
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 (including the drive).
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.

Viz také 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.

Příklad


if (board) board(B) {
  output(filesetext(B.name, ".OUT")) {
    ...
    }
  }


OBSAH Translation © 2001 ELCAD v.o.s., Copyright © 2001 CadSoft Computer GmbH