diff options
Diffstat (limited to 'src/jake2/server/scrap.jpage')
-rw-r--r-- | src/jake2/server/scrap.jpage | 24 |
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 |