Search:

Type: Posts; User: Loki617

Search: Search took 0.14 seconds.

  1. Re: File I/O reading from text and writing to another, PLEASE ADVISE! basic

    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
  2. Re: File I/O reading from text and writing to another, PLEASE ADVISE! basic

    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...
  3. Re: File I/O reading from text and writing to another, PLEASE ADVISE! basic

    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...
  4. Re: File I/O reading from text and writing to another, PLEASE ADVISE! basic

    {
    Fundraising athritis = new Fundraising("Athritis Foundation", 25000);
    Scanner input = new Scanner(new File("Donations.txt"));
    PrintWriter outputPlatinumDonor = new...
  5. Re: File I/O reading from text and writing to another, PLEASE ADVISE! basic

    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...
  6. Re: File I/O reading from text and writing to another, PLEASE ADVISE! basic

    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...
  7. Re: File I/O reading from text and writing to another, PLEASE ADVISE! basic

    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...
  8. File I/O reading from text and writing to another, PLEASE ADVISE! basic

    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....
Results 1 to 8 of 8