Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

25
LINES

< > BotCompany Repo | #683 // Zip/jar file to path names (developing)

JavaX (input.txt to output.txt) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (51L/1K/2K).

1  
!636
2  
!modern
3  
4  
main {
5  
  psvm {
6  
    if (args.length == 0)
7  
      scan("input/main.zip");
8  
    else for (String arg : args)
9  
      scan(arg);
10  
  }
11  
  
12  
  static void scan(String path) ctex {
13  
    File file = new File(path);
14  
    print("== Processing " + path);
15  
    ZipFile zipFile = new ZipFile(file);
16  
    Enumeration entries = zipFile.entries();
17  
    
18  
    while (entries.hasMoreElements()) {
19  
      ZipEntry entry = (ZipEntry)entries.nextElement(); 
20  
      System.out.println("File found: " + entry.getName());
21  
    }
22  
    
23  
    zipFile.close();
24  
  }
25  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #683
Snippet name: Zip/jar file to path names (developing)
Eternal ID of this version: #683/1
Text MD5: ce20abe92476c138dcace2d72ed57119
Transpilation MD5: 8662cc9c7b32551590784949a840b304
Author: stefan
Category:
Type: JavaX (input.txt to output.txt)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-08-23 22:21:40
Source code size: 559 bytes / 25 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 658 / 696
Referenced in: [show references]