TheBoyMonkey
Programmer
I'm trying to retrieve a few lines of text from a file (ASCII) and then concatonate them into a TCHAR variable.
The entire lines of text amount to around 170 characters in length and the TCHAR receiving each file line is is set to _TCHAR fileLine[4000].
I'm simply using the instruction:
_tcscat(*completeString, fileLine);
to concatonate.
The problem is that the line concatonations stop after around 150 characters for no real reason that I can see (and halfway through a fileLine), even thought the _TCHAR fileLine variable continues to hold the whole of the next string in sequence correctly.
If I use strcat and char variables, the completeString is built correctly, but the same problem occurs if I try to convert to TCHAR (in the same place of the string).
Any ideas?
Thanks for any time,
Tom.
The entire lines of text amount to around 170 characters in length and the TCHAR receiving each file line is is set to _TCHAR fileLine[4000].
I'm simply using the instruction:
_tcscat(*completeString, fileLine);
to concatonate.
The problem is that the line concatonations stop after around 150 characters for no real reason that I can see (and halfway through a fileLine), even thought the _TCHAR fileLine variable continues to hold the whole of the next string in sequence correctly.
If I use strcat and char variables, the completeString is built correctly, but the same problem occurs if I try to convert to TCHAR (in the same place of the string).
Any ideas?
Thanks for any time,
Tom.