I'm using wxWidgets 2.4.2 with Dev-C++ on a Windows XP machine. The code snippet below creates a simple text file that contains 10 lines. Here's the strange thing. I checked the resulting text file with a hex editor and noticed that each line/record is terminated with <cr><cr><lf>. Where is the extra <cr> coming from? The wxFile class worked as expected, each record is delimited by <cr><lf>. I'm totally stumped, any help would be appreciated. thanks