SteveBrett
Programmer
I start as a trainee developer next week and have been working through the "C++ in 21 days" book and have the following problem.<br><br>In Visual C++ I can't seem to open a text file (lmhosts) and write data to it without creating a new file each time.<br><br>I also can't seem to write the end of line character and so get a new file with a single new line every time I run the prog.<br><br>I've tried using the archive object but am getting control characters in there which I don't want.<br><br>Any pointers or help would be greatly appreciated.<br><br>Cheers,<br><br>Steve<br><br>p.s I learned C++ on Unix and it was soooo much easier ...