Working in theory, a inquisitive file output question.
So a while back I was looking at a brute force dictionary program some little script kiddie had written in visual basic. There were severe limitations to this program, like that it couldn't write a list of combinations that were over 7 characters long because of the way it wrote to a file.
Now I want to try out to see if using Java something similar can be accomplished without a drawback. Not for the idea of making a brute force dictionary program, but because I was wondering if writing large amounts of data to a file would have the same draw backs in Java.
The visual basic program had to store all the combinations inside the RAM, which is an obviously terrible idea. If I used a BufferedWriter(FileWriter) I would be able to append to the end of the file, making it possible to store less in the memory.
Would I be correct in seeking this combination for this task? I don't know if a BufferedWriter keeps the strings that it will write to the file in its memory before writing it or if it will append the file one line at a time.
Another question is that if I append a file a line at a time, is there any known drawbacks to this? Performance issues maybe? I haven't been able to quench my thirst for knowledge of this subject on Google so far, but that's half due to the fact that this government web doesn't much like the idea of pursuing knowledge and blocks the websites.
EDIT: Spelled the title wrong :frusty: