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";
相關文章
相關標籤/搜索