System.out.println("\nThe file " + fileName
+ " is not a C or C++ or JAVA source file !\n");
return null;
}
}
//文件大小是否大于64k,不过大于64k仍可以计算
if (file.length() > 65535) {
System.out.println("\nThe file " + fileName
+ " is too large than 64k ,but It can work :)!\n");
}
//文件大小如果小于3个字节,返回空
if (file.length() < 3) {
System.out.println("\nThe file " + fileName
+ " has no content \n");
return null;
}