Link to home
Start Free TrialLog in
Avatar of ITKnightMare
ITKnightMare

asked on

Why does Output's Print function when writing to file put "0D 0A" in the end of file?

Open "MyFile.jpg" For Output As #1
   Print #1, strRawJpegFile
Close #1

Doing this people here told me was the fastest way of writing into file.  But I open the jpeg up in hex and function puts "0D 0A" the CRLF I am assuming at the very end of the file.  What would I need to use to write a file from a string fast, yet without having 2 new bytes in the end of it.
Avatar of ITKnightMare
ITKnightMare

ASKER

Nevermind I found it,  I had to put ";" at the end of it

Open "MyFile.jpg" For Output As #1
   Print #1, strRawJpegFile;
Close #1

worked.  So first comment gets the points :)
ASKER CERTIFIED SOLUTION
Avatar of nffvrxqgrcfqvvc
nffvrxqgrcfqvvc

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial