java-io Questions

5

Solved

In my application I have written the code to delete the directory from drive but when I inspect the delete function of File it doesn't delete the file. I have written some thing like this //Code to...
Constitutional asked 21/10, 2010 at 13:28

4

Does it make sense to always wrap an InputStream as BufferedInputStream, when I know whether the given InputStream is something other than buffered? For e.g: InputStream is = API.getFromSomewhere(...
Calends asked 3/6, 2010 at 7:36

5

How to create a file in Windows that would have attributes FILE_ATTRIBUTE_TEMPORARY and FILE_FLAG_DELETE_ON_CLOSE set using Java? I do want my file to be just in-memory file. To precise: delete-o...
Manfred asked 25/5, 2010 at 10:31

3

Solved

Greetings , I get huge number of records from database and write into a file.I was wondering what the best way to write huge files. (1Gb - 10Gb). Currently I am using BufferedWriter BufferedWrite...
Mansuetude asked 7/1, 2010 at 2:38

4

Solved

I have inherited some code: Process p = new ProcessBuilder("/bin/chmod", "777", path).start(); p.waitFor(); Basically, there is for some ancient and highly voodoo based reason for storing key/va...
Faultless asked 15/7, 2009 at 4:37

3

Solved

I am using the code snippet below, however it's not working quite as I understand it should. public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader...
Jubbah asked 24/8, 2008 at 13:29

© 2022 - 2024 — McMap. All rights reserved.