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

11
LINES

< > BotCompany Repo | #1002605 // Try opening a file many times at once

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (706L/5K/17K).

!752

p {
  File file = new File(getCacheProgramDir(), "irrelevant");
  saveTextFile(file, "it really is");
  
  for (int i = 1; i <= 2000000; i++) {
    new FileInputStream(file); // never closing hahahaha
    print("Opened " + i + " files!");
  }
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1002605
Snippet name: Try opening a file many times at once
Eternal ID of this version: #1002605/1
Text MD5: da40d79d3a554af28eac309e3b910175
Transpilation MD5: eeb03d57ba09c8f647e597891b8a007f
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-02-05 02:39:27
Source code size: 260 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 556 / 559
Referenced in: [show references]