Added a new getSize method
This commit is contained in:
parent
ea057ec8d4
commit
baed379a7c
@ -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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user