I am a trying to write a program to read from a text file that is continuously getting longer. I wrote it in C++ originally and it works fine. Now I am trying to write the same program in Java. Since I am a beginner at java I was wondering if someone could help me "translate" my code. I was not sure if this is the right place to ask this question, if I have made a mistake please advise me on where to put this question.
I'm probably more of a beginner to Java then you but I can tell you that the reason that you are having trouble with this is that you are using native C\C++ methods instead of those exported by a dll. Would it be good enough to call this program from the Java shell? That would certainly simplify things.
(I'm not sure, but I think you can read files in a more basic way, but here the code is using a buffered stream. Which is what an istream is in the C++ world.)