-
Hi,
I am having problems understanding binary:
1. What is the difference between open path for binary.. & open path for input.
2. If I load the data from both the examples above into strings will they be the same (if the files are exe)?
3. If you open an EXE file (open stEXEPath for input) and input the data into a string strData will the data not be the same as if it was opened in binary,
Please Help
Thanks
-
If you open a file for Input you are opening it as a sequential file. That means that when the file is read all CHR(13) characters found will automatically be convertet into CHR(13)+CHR(10) (vbCrLf). In a binary file (like an EXE) there might be a byte that has the value 13 without being a carriage return.
If you read the file with the Input statement into a string the result will be the same for both files. But a file opened for binary can be read with the Get statement.
Best regards