Hi,
In the Windows version of Eagle CAD, output("file.txt", "wt") writes file.txt to Eagle root directory.
fileread( lines, "file.txt" ) reads file.txt from Eagle root directory.
In the Linux version (5.11.0 Light), output("file.txt", "wt") writes file.txt to user home directory.
fileread( lines, "file.txt" ) reads file.txt from Eagle root directory.
So, for writing and reading, the default directories differ.
In the Eagle CAD Help, it is said that:
By default the output file is written into the Project directory.
In linux, the project directory is set to
$HOME/eagle:$EAGLEDIR/projects/examples
Should it then write the file into ~/eagle, not ~/?
Thanks