0
如何在写入scilab文件后显示文件内容?SciLAB - 文件读取和显示内容
如何在写入scilab文件后显示文件内容?SciLAB - 文件读取和显示内容
如果你的意思是打开该文件在编辑器中你可以在你的内置scinotes
编辑器(docs)这样
my_file_path = "my_dir/my_file.txt";
scinotes(my_file_path);
这也是possbile使用与editor
命令(docs)预定其他编辑器:
my_file_path = "my_dir/my_file.txt";
editor(my_file_path);
如果要读取一个文件,并显示它的内容,你可以使用mgetl
(docs)和disp
my_file_path = "my_dir/my_file.txt";
fd=mopen(my_file_path,'r');
my_txt = mgetl(fd,10);
mclose(fd);
disp(my_txt)