Bash fileaccess字符串无效?

Bash fileaccess字符串无效?,bash,file-io,Bash,File Io,这个小测试程序 %Test für Befehl "file" (testfile.txt) (r) file /namefile exch def namefile 80 write namefile flushfile end 以以下错误消息结束: Error: /invalidfileaccess in --file-- Operand stack: (testfile.txt) (r) 文件访问字符串r+、a、a+、w、w+也会导致相同的错误消息。 也许我安装的Ghosts

这个小测试程序

%Test für Befehl "file"
(testfile.txt) (r) file /namefile exch def
namefile 80 write
namefile flushfile
end
以以下错误消息结束:

Error: /invalidfileaccess in --file--
Operand stack:
   (testfile.txt)   (r)
文件访问字符串r+、a、a+、w、w+也会导致相同的错误消息。 也许我安装的Ghostscript或GSview中有错误,但我不知道

谢谢你的帮助!
Enricorensto

很抱歉我不知道,但您的程序是用什么语言编写的?你能添加正确的标签吗?因为在这个表单中,它与bash没有太多关系……您是否尝试以管理员身份运行?