aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/server/scrap.jpage
diff options
context:
space:
mode:
Diffstat (limited to 'src/jake2/server/scrap.jpage')
-rw-r--r--src/jake2/server/scrap.jpage24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/jake2/server/scrap.jpage b/src/jake2/server/scrap.jpage
new file mode 100644
index 0000000..1666502
--- /dev/null
+++ b/src/jake2/server/scrap.jpage
@@ -0,0 +1,24 @@
+
+
+String p="\"123456\"";
+
+System.out.println(p.substring(1,p.length()-1));
+
+ String path ="c:/baseq2/game/*.sav";
+ String findbase;
+ String findpattern;
+
+ int i = path.lastIndexOf('/');
+ if (i!=-1)
+ {
+ findbase = path.substring(0,i);
+ findpattern = path.substring(i+1,path.length());
+ }
+ else
+ {
+ findpattern = "*";
+ findbase = path;
+ }
+
+
+ System.out.println(findbase + ":" + findpattern); \ No newline at end of file