wood burning stoves 2.0*
The moose likes I/O and Streams and the fly likes RandomAccessFile is it more compatible for application prg Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "RandomAccessFile is it more compatible for application prg" Watch "RandomAccessFile is it more compatible for application prg" New topic
Author

RandomAccessFile is it more compatible for application prg

Comal Rajagopalaratnam Muthukumar
Ranch Hand

Joined: Mar 18, 2012
Posts: 90
Hi

I tried to use RandomAccessFile for instant access of vaiables to get deployed in methods of an application prg to derive a solution.
Is it efficient enough or not.If not what other storage media files to be used . In C++ program use of files is very fast and more robus during run time ,
May i request someone for any guidelines on this.

Thanks
As
CRMK
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42283
    
  64
Efficient enough for what purpose? It sounds as if you have already implemented it - does it do what you need done? If not, how is it lacking?


Ping & DNS - my free Android networking tools app
Comal Rajagopalaratnam Muthukumar
Ranch Hand

Joined: Mar 18, 2012
Posts: 90
Ulf Dittmer wrote:Efficient enough for what purpose? It sounds as if you have already implemented it - does it do what you need done? If not, how is it lacking?


Hi
What is the common usage in java normally as compared in c++ which is not random but more quicker .
As
CRMK
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42283
    
  64
Again, the common usage for what purpose? Remember that we have no idea what you are trying to accomplish. If you need random access, then you need random access, and nothing else will do; do you need random access? If not, reading a file sequentially -using FileInputStream- may be faster.
Comal Rajagopalaratnam Muthukumar
Ranch Hand

Joined: Mar 18, 2012
Posts: 90
Ulf Dittmer wrote:Again, the common usage for what purpose? Remember that we have no idea what you are trying to accomplish. If you need random access, then you need random access, and nothing else will do; do you need random access? If not, reading a file sequentially -using FileInputStream- may be faster.




Hi

No matter for your kind help whether rendered in full or partially to my question.



Thanks .

As
CRMK


Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42283
    
  64
I doubt anyone will be willing to go through 600 lines of code just because you think there might be ways to improve it. Please be much more precise in what you're asking, and remove all the code that is not directly related to the question.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RandomAccessFile is it more compatible for application prg