I have a VB program that encrypts data for another VB program to read via a text file.
The encryption creates Ascii characters in CHR format in the output text file.
In my tests, I noticed that when the following ASC values are written on the output file, the second program the reads it does not get the entire record:
ASC(0) - NULL
ASC(13) - Carriage Return
ASC(26) - SUB- Substitute
1- if the output record has 136 characters and the 25th one is ASC(13), the output file is read by the "reading" program as 2 lines.
2- If the output record has 136 chars and the 25th one is ASC(0), only 25 bytes/characters are written to the output file. This is not correct as the "reading" program expects all of the 136 characters.
Any ideas or answers can help.