How to write text on end of txt file

Hi

I have a little problem .I need to add a text on end of existing text file.

For example:

I haveexa.txt file which have

105

110

115

in it.I want to add 120 on end of this text file like this

105

110

115

120

Can anyone help me o give me some example for this

Thanks

[360 byte] By [boske3a] at [2007-11-27 10:40:48]
# 1

Look at the FileWriter API and see the c'tor that takes a boolean argument called "append"...

CeciNEstPasUnProgrammeura at 2007-7-28 19:08:58 > top of Java-index,Java Essentials,Java Programming...
# 2

Look at the constructors for FileWriter.

sabre150a at 2007-7-28 19:08:58 > top of Java-index,Java Essentials,Java Programming...
# 3

I find it

Thanks for now

Message was edited by:

boske3

boske3a at 2007-7-28 19:08:58 > top of Java-index,Java Essentials,Java Programming...
# 4

<deleted>

Message was edited by:

sabre150

sabre150a at 2007-7-28 19:08:58 > top of Java-index,Java Essentials,Java Programming...
# 5

I find it

Thanks

boske3a at 2007-7-28 19:08:58 > top of Java-index,Java Essentials,Java Programming...