wxFFile f;
file.Open("c:\\test.log", "wa"); // tested, but not correct.
I use "wa", "w" means create the file if it is not exists, "a" to append it
but "a" does not work.
how to append conent to a file? Topic is solved
-
- wxWorld Domination!
- Posts: 1339
- Joined: Wed Aug 03, 2005 8:10 am
- Location: BANGALORE, INDIA
- Contact:
i always use that:
[/code]
Code: Select all
wxFFile f;
f.Open("some","ab");//for not text.
Just a small suggestion, why are you still using wxFFile? Isn't it more dynamic to use streams? After they were introduced there was basically no need for direct file I/O anymore, plus you can simply interchange one input stream kind with another with little to no effort.
Just a suggestion.
- Jorgen
Just a suggestion.
- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
Hi!
a combination like "wa" doesn't make sense, as "w" truncates the file. "a" implicitly means write access.
a combination like "wa" doesn't make sense, as "w" truncates the file. "a" implicitly means write access.
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4
"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4
"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda