posted 15 years ago
Ok... I'm trying to pull information from a database, concatenate (sp?) it and throw it into a flat (text) file as one line per record. Currently, to check my program I use a system.out.println() to make sure I'm pulling and putting together the proper stuff. Yep, that works, goes through the entire database table and it's fine. However, whenever I go to check my text file I created, it only has 1 record, the last one. I'm just about going to lose it... I've tried printwriters, bufferedwriters, and about 5 other things. It just keeps overwriting (I suppose) the previous line with each new line (yep, used line seperators and newline both to no avail) instead of placing a carriage return or other seperation device. Any help would be appreciated.