Reading file with Null character

Hello,

I just want to ask questions regarding reading file.

I have declared this variable “ReadFile” with datatype “file”. And I set WRITEMODE AND TEXTMODE properties as TRUE. Would the output will still include the null characters in the file? If yes, How can I easily detect if there is a null character in the file?

Thanks in advance.

You can check for the ascii value of the character. It’s a long time since I tried it, but that would be the way.

Hello Sir,

Yes I know I can do that. But it will be tough for the processing since the file has a huge amount of characters. Will there be any other solution for this? Thanks.