Added a new getSize method

This commit is contained in:
Keith Armstrong 2025-01-12 21:23:42 -05:00
parent ea057ec8d4
commit baed379a7c

View File

@ -49,6 +49,19 @@ public class fileProcessor {
return false;
}
public static long getSize(String myFile)
{
try
{
File varFile = new File (myFile);
return varFile.length();
}
catch (Exception ex)
{
return 0;
}
}
public static String replaceInFile(String myFile, Map hashMap) {
File thisFile = new File(myFile);
if (!thisFile.exists()) {