0
class AC
{
    int ID;
    String name;
    int AcNo;
    Date ODate;
    double balance;
    double transaction;
    AC(int ID,String name,int AcNo,Date ODate,double balance,double transaction)
    {
        this.ID=ID;
        this.name=name;
        this.AcNo=AcNo;
        this.ODate=ODate;
        this.balance=balance;
        this.transaction=transaction;
        
    }

this is my main class
i want to write those data which are relevant to those variable variables in an external text file

3
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by javaAddict
0

Search this forum for examples on how to use this class:

BufferedWriter

BufferedWriter wr = new BufferedWriter(new FileWriter("filename"));
wr.write("something");
wr.newLine();


wr.close();
0

Thanks for this javaaddict ..
:)
cant we add several records without over writing the existing content of the text file...if so please provide the code

0

Thanks for this javaaddict ..
:)
cant we add several records without over writing the existing content of the text file...if so please provide the code

If you have any further questions you should check first check the API for the classes you are using. You will probably find there what you need.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.