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).

!636
!modern

main {
  psvm {
    if (args.length == 0)
      scan("input/main.zip");
    else for (String arg : args)
      scan(arg);
  }
  
  static void scan(String path) ctex {
    File file = new File(path);
    print("== Processing " + path);
    ZipFile zipFile = new ZipFile(file);
    Enumeration entries = zipFile.entries();
    
    while (entries.hasMoreElements()) {
      ZipEntry entry = (ZipEntry)entries.nextElement(); 
      System.out.println("File found: " + entry.getName());
    }
    
    zipFile.close();
  }
}

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: 657 / 695
Referenced in: [show references]