From baed379a7ce42bed0b9272d315e7773d23b42c91 Mon Sep 17 00:00:00 2001 From: Keith Armstrong Date: Sun, 12 Jan 2025 21:23:42 -0500 Subject: [PATCH] Added a new getSize method --- src/com/belkast/soap/fileProcessor.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/com/belkast/soap/fileProcessor.java b/src/com/belkast/soap/fileProcessor.java index 2a399b6..60edb48 100644 --- a/src/com/belkast/soap/fileProcessor.java +++ b/src/com/belkast/soap/fileProcessor.java @@ -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()) {