Your examples helped explain the principle but I still cannot resolve why my Donors.txt and PlatinumDonors.txt files remain empty and void of any information. Thanks again
Type: Posts; User: Loki617
Your examples helped explain the principle but I still cannot resolve why my Donors.txt and PlatinumDonors.txt files remain empty and void of any information. Thanks again
Ok, this is where I am now, I feel like I'm getting somewhere but it still doesn't write any information.
public void writeToFile(String name, String addressLine1, String addressLine2, double...
Well my input data is a list of donations made by people. So if donated alot I'm supposed to pet Stanley and if they donated a little I'm supposed to pet Spot. I have to read this information and...
{
Fundraising athritis = new Fundraising("Athritis Foundation", 25000);
Scanner input = new Scanner(new File("Donations.txt"));
PrintWriter outputPlatinumDonor = new...
Yea, I was getting error messages without the second PrintWriter instance in my writeToFile Method, that is why I did that. Thank you for your help, I guess I should keep the PrintWriter method in...
The instructions for the writetofile method.
"writeToFile" method that accepts an open PrintWriter object, and the name and address of the donor. If the donor donated more than $1,000, the...
I used the print method in a few places. The problem seems to occur after the first four lines of the donors.txt has run through. Reading the data in doesn't seem to be the problem. Which instance...
Hello, I thought I was done with this program but for some reason it just isn't working. I am required to read from a .txt file, and then write the information to two different .txt file locations....