Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Write file
 Post subject: Write file Post rating: 0   New post Posted: Tue 26 Mar, 2013, 19:16 

User rating: 0
Joined: Tue 26 Mar, 2013, 19:12
Posts: 1
Hi,
i would like to save a data in a file and when the data updates I want to write the new data deleting the old one instead of adding the new one to the old one.
If I use the function out.append( ((datatoadd+"\r\n"); the new data is written after the old one saved.
Thanks


 
 Post subject: Re: Write file Post rating: 0   New post Posted: Wed 27 Mar, 2013, 10:19 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
See:
https://www.dukascopy.com/wiki/#Write_in_File
Read more:
https://docs.oracle.com/javase/tutorial/essential/io/file.html


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com