ostream.writeUTF()

hi all,

is there a way to setup ostream so when a enter data in a field the data not only goes to lets say "data.dat" but keeps the information until physically deleted?

I can view the information but when i go to make another entry it deletes the previous data. also is there a way to get ostream to assign a new filename after every entry (eg log.dat, log2.dat ...).

any help would be wonderful.

[422 byte] By [RoujinCa] at [2007-11-27 4:51:09]
# 1

> is there a way to setup ostream so when a enter data

> in a field the data not only goes to lets say

> "data.dat" but keeps the information until physically

> deleted?

Keeps it where? You can do that yourself. Why would you want to locate that kind of operation in an output stream class?

> I can view the information but when i go to make

> another entry it deletes the previous data.

As opposed to keeping it where? ('it' clearly not being an output stream but some kind of entry field at this stage.)

> also is there a way to get ostream to assign a new filename

> after every entry (eg log.dat, log2.dat ...).

Err, construct a new one?

ejpa at 2007-7-12 10:04:47 > top of Java-index,Java Essentials,Java Programming...