What is the Maximum size of WCHAR
-
Hi Friends, I want to know the size of WCHAR. This is the code line i am using WCHAR InputText[99999]=L""; I am using this string to read a *.txt file. But if i choose a 5 mb file. I am not able to read. It is posible to increase the size
Thanks and Regards. SANTHOSH V
-
Hi Friends, I want to know the size of WCHAR. This is the code line i am using WCHAR InputText[99999]=L""; I am using this string to read a *.txt file. But if i choose a 5 mb file. I am not able to read. It is posible to increase the size
Thanks and Regards. SANTHOSH V
-
Hi Friends, I want to know the size of WCHAR. This is the code line i am using WCHAR InputText[99999]=L""; I am using this string to read a *.txt file. But if i choose a 5 mb file. I am not able to read. It is posible to increase the size
Thanks and Regards. SANTHOSH V
-
Hi Friends, I want to know the size of WCHAR. This is the code line i am using WCHAR InputText[99999]=L""; I am using this string to read a *.txt file. But if i choose a 5 mb file. I am not able to read. It is posible to increase the size
Thanks and Regards. SANTHOSH V
Not many people read the whole file into a buffer. As we say, this solution doesn't scale. Most people read text files, line by line... only buffering what they need. If you're writing a text editor... it's a different story... and in that case you should dynamically allocate the text file buffer.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Peter Weyzen Staff Engineer [SoonR Inc -- PC Power delivered to your phone](http://www.soonr.com)
-
Hi Friends, I want to know the size of WCHAR. This is the code line i am using WCHAR InputText[99999]=L""; I am using this string to read a *.txt file. But if i choose a 5 mb file. I am not able to read. It is posible to increase the size
Thanks and Regards. SANTHOSH V
santhoshv84 wrote:
This is the code line i am using WCHAR InputText[99999]=L"";
Why not use a
std::wstring
object instead?"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne