Filenames

  • Thread starter Thread starter Erica
  • Start date Start date
Erica said:
Hi, is it possible to insert newline character in filenames? How do I do
this?

Newline doesn't appear on the list of forbidden characters for a
filename, but I definitely would not do it even if I could figure out
how to. It would be horribly difficult to do anything with the file.
 
Tim said:
Newline doesn't appear on the list of forbidden characters for a
filename, but I definitely would not do it even if I could figure out
how to. It would be horribly difficult to do anything with the file.

It's not in the list of forbidden characters that are documented in various
KB articles, but if you try to create a file with a newline character the
error returned can be translated to "The filename, directory name, or volume
label syntax is incorrect.".
 
No Erica it isn't possible, but the newline character is chr(10) from what I
remember
 
If you look at that page it says OA which is hex for 10, like I said. I have
just looking in my Visual Studio.NET MSDN documentation for the ASCII
character set & it also states newline is chr(10). You could also use CRLF
(carriage return line feed), which is chr(13), chr(10)
 
Newbie Coder said:
If you look at that page it says OA which is hex for 10, like I said. I
have
just looking in my Visual Studio.NET MSDN documentation for the ASCII
character set & it also states newline is chr(10). You could also use CRLF
(carriage return line feed), which is chr(13), chr(10)


I hope it says 0A rather than OA. 0D0A is the hex for CRLF.
 
Tom

That was a type on my behalf but I have been on the computer 21.5 hours
almost (no joke) constantly coding today

10 = 0a
13 = 0d
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top