Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RandomAccessFile is it more compatible for application prg

 
Comal Rajagopalaratnam Muthukumar
Ranch Hand
Posts: 103
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Comal Rajagopalaratnam Muthukumar
Ranch Hand
Posts: 103
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 103
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic