same code i did previously couldnt give all the data
Sorry, I don't understand what you mean.
Do you mean that you did not read all the data in the file with the second code?
How much did you read? Compare that with how much was read with the first code.
For testing purposes:
Can you make a simple program that writes a UTF-16 file and then reads it in and displays its contents.