search
Login

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

Recent questions tagged file

0 votes
1 answer 13 views
asked rock Expert 15k points 15 23 30
0 votes
1 answer 19 views
asked sara Guru 24.6k points 29 52 81
0 votes
1 answer 26 views
asked sara Guru 24.6k points 29 52 81
0 votes
1 answer 20 views
I have a java process that opens a file using a FileReader. How can I prevent another (java) process to open this file, or at least make that second process know that the file is already opened? Does this automaticaly makes the second process get an exception if the file is open(which solves my problem) or do i have to explicitly open it in the first process with some sort of flag or argument?
asked john Guru 27.1k points 31 50 97
0 votes
1 answer 26 views
I need to store data into files inside .jar file and read it again. I know that I can use Class.getResourceAsStream() method but it returns an InputStream that I can read from. But I look for a way to write.
asked john Guru 27.1k points 31 50 97
0 votes
2 answers 18 views
It has always bothered me that the only way to copy a file in Java involves opening streams, declaring a buffer, reading in one file, looping through it, and writing it out to the other steam. The web is littered with similar, yet still slightly ... )? Perhaps in some reliable open source utility package, that would at least obscure this underlying implementation and provide a one line solution?
asked keem Expert 13.2k points 27 40 59
0 votes
1 answer 20 views
Please excuse my ignorance, I am new to Java, trying to learn from my mistakes as I write a simple programme. It seems there are a few different ways to read and write data using files. I am trying to read ASCII data from a file, could a knowledgeable person talk about the differences so that I can decide what the best way is?
asked keem Expert 13.2k points 27 40 59
0 votes
1 answer 17 views
asked keem Expert 13.2k points 27 40 59
0 votes
3 answers 38 views
0 votes
1 answer 69 views
To see more, click for the full list of questions or popular tags.
...