在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
# perl 读文件 open(FILE,"filename.txt"); my $record; while($record=<FILE>) { print("file record is : $record\n"); } close(FILE); # perl 写文件 # 覆盖写入 open(FILE,">filename.txt"); syswrite(FILE,"This is my write file contents\n"); close(FILE); # 追加写入 open(FILE,">>filename.txt"); syswrite(FILE,"This is my write file \n"); syswrite(FILE,"This is my write file contents \n"); close(FILE); |
请发表评论