Pass absolute path to textfile, not relative.