O.K.
I've finally got it. The mistake I did was not in reading a file, but in writing read memory buffer to another file. For writing I used function fprintf, which writes string (char *) to a file. The problem with this function is that writing stops as soon as 0x00 appears in the string (0x00...
O.K.
I've finally got it. The mistake I did was not in reading a file, but in writing read memory buffer to another file. For writing I used function fprintf, which writes string (char *) to a file. The problem with this function is that writing stops as soon as 0x00 appears in the string (0x00...
O.K.
I've finally got it. The mistake I did was not in reading a file, but in writing read memory buffer to another file. For writing I used function fprintf, which writes string (char *) to a file. The problem with this function is that writing stops as soon as 0x00 appears in the string (0x00...
I should maybe make it more clear. I am able to read whichever text file into the memory which uses 8-bit character set. However files with not 8-bit character sets as well as Microsoft Word, Excel files I cannot read (the reading is stopped as soon as 00x0 character is found which is probably...
I should maybe make it more clear. I am able to read whichever text file into the memory which uses 8-bit character set. However files with not 8-bit character sets as well as Microsoft Word, Excel files I cannot read (the reading is stopped as soon as 00x0 character is found which is probably...
Lim, thanks for the response. However, the code you propose to use does not work when you want to copy to a buffer a Microsoft Word document or a document with not 8-bit character set.
I have a problem with which I have already spent a lot of time and I cannot find a solution although I intuitively feel that there is a very easy solution for it. I am completely stucked.
Here is the problem:
I have a file about which I do not know anything (neither its character set) and I want...
I have a problem with which I have already spent a lot of time and I cannot find a solution although I intuitively feel that there is a very easy solution for it. I am completely stucked.
Here is the problem:
I have a file about which I do not know anything (neither its character set) and I want...
I have a problem with which I have already spent a lot of time and I cannot find a solution although I intuitively feel that there is a very easy solution for it. I am completely stucked.
Here is the problem:
I have a file about which I do not know anything (neither its character set) and I want...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.