Kenshin
October 14th, 2002, 08:18 AM
I need input into the file the string with size less than 64kb. What is the optimized way to do this?
I use _write(...) function, no streams, but with streams is the so problem too. The problem is when I try to write string if file, sometimes programm writes more bytes in file, then in string is. More on 20. I dont imagine where may the error be. In number of written bytes I point strlen(my string). The string is dynamic chars array.
Is anybody saw this problem?
Thanks anymore
I use _write(...) function, no streams, but with streams is the so problem too. The problem is when I try to write string if file, sometimes programm writes more bytes in file, then in string is. More on 20. I dont imagine where may the error be. In number of written bytes I point strlen(my string). The string is dynamic chars array.
Is anybody saw this problem?
Thanks anymore