perl -文件的打开,读写操做

现有文件hello.txt,内容为:"你好'\n' 我是中国人" spa 1,打开文本hello.txtperl       #!/usr/bin/perl 文件       open f,"hello.txt";while     f 为文件句柄,指向打开的文件 2,逐行读取文本hello.txt       #!/usr/bin/perl       open f,"< hello.txt";
相关文章
相关标签/搜索