#!c:\\perl\\bin\\perl.exe use IO::File; #读取一行 my $fd = IO::File->new('perl.txt'); my $one_line = <$fd>; print $one_line; $fd->close; #写入数据 my $wfd = IO::File->new(">> readme.txt"); print $wfd "I love Perl!\n"; prin…
public class File extends Object implements Serializable, Comparable<File> 构造方法: public File(String pathname) 按照完整路径实例化 public File(File parent, String child) 按照父路径和文件名实例化 成员: public static final String separator 目录分隔符 ('\'.'/'等) public static final…