Yup. I'm trying to add BNFTP to JBBE, but of course, Print #FileNum, m_sData outputs a CRLF after whats written. Anyone know how to write without that CRLF?
Question: Why do you preapend topics with language namesin a forum specifically for that language?
Quote from: Joe on November 27, 2005, 01:39 PM
Yup. I'm trying to add BNFTP to JBBE, but of course, Print #FileNum, m_sData outputs a CRLF after whats written. Anyone know how to write without that CRLF?
dont use Print?
Use Put.
Quote from: Mangix on November 27, 2005, 03:46 PM
Quote from: Joe on November 27, 2005, 01:39 PM
Yup. I'm trying to add BNFTP to JBBE, but of course, Print #FileNum, m_sData outputs a CRLF after whats written. Anyone know how to write without that CRLF?
dont use Print?
How informative!
Quote from: rabbit on November 27, 2005, 08:06 PM
Use Put.
Thanks.
Quote from: Warrior on November 27, 2005, 02:56 PM
Question: Why do you preapend topics with language namesin a forum specifically for that language?
There's an odd chance that VB5 or VB4 are still in use. Well, more out of habit, but still..
Add a semicolon after your Print statement:
Print #f, "Your name is ";
Print #f, TheirName;
Print #f, "."
'Result: "Your name is Joe."
It works after variables, too. Don't use Put -- Put is designed for random and binary file access.
He's trying to write files, not text, in which case he should be using binary anyway.
Quote from: Stealth on November 29, 2005, 02:39 PM
Add a semicolon after your Print statement:
Print #f, "Your name is ";
Print #f, TheirName;
Print #f, "."
'Result: "Your name is Joe."
It works after variables, too. Don't use Put -- Put is designed for random and binary file access.
Duh! Thanks.
Quote from: rabbit on November 29, 2005, 05:30 PM
He's trying to write files, not text, in which case he should be using binary anyway.
Aparently I have to receive in an array from the socket, and then it makes reading the BNFTP header a real pain, and reading it both ways is even more of a pain, where this is easy to do.