I have a program that simply opens a file and prints a string to the file and closes it. I need this file to not have a CR/LF after the string (which does not contain the CR/LF). The print statement seems to put the CR/LF there when it writes to the file.
Example:
Open strFile For Output As #1 Len = Len(strOutput)
Print #1, strOutput
Close #1
_________________________________________________________
Same variable, below demonstrates string has no trailing vbcrlf:
Clipboard.Clear
Clipboard.SetText strOutput
_________________________________________________________
If I paste into a notepad window, there is no newline character at the end of the file. I've tried different modes and everything I could find online regarding the ending newline character, but could not find a solution.
Any help would be greatly appreciated!
Example:
Open strFile For Output As #1 Len = Len(strOutput)
Print #1, strOutput
Close #1
_________________________________________________________
Same variable, below demonstrates string has no trailing vbcrlf:
Clipboard.Clear
Clipboard.SetText strOutput
_________________________________________________________
If I paste into a notepad window, there is no newline character at the end of the file. I've tried different modes and everything I could find online regarding the ending newline character, but could not find a solution.
Any help would be greatly appreciated!