I tried to write "2/9/2013" to a text file.
But failed to do so.
Is it possible to write "/" including others characters contained in a string in the text file?"
Writing Special Characters To A Text File
Page 1 of 14 Replies - 145 Views - Last Post: 09 February 2013 - 07:11 AM
Replies To: Writing Special Characters To A Text File
#2
Re: Writing Special Characters To A Text File
Posted 09 February 2013 - 04:37 AM
It's perfectly possible to write a string containing /s to a file - there's nothing special about the / character. If your code failed, it must have failed for different reasons.
#3
Re: Writing Special Characters To A Text File
Posted 09 February 2013 - 04:52 AM
summer_breeze, on 09 February 2013 - 11:13 AM, said:
I tried to write "2/9/2013" to a text file.
But failed to do so.
Is it possible to write "/" including others characters contained in a string in the text file?"
But failed to do so.
Is it possible to write "/" including others characters contained in a string in the text file?"
Did you mean to post
I tried to write "2\9\2013" to a text file but failed to do so....
as the character "/" is not a special character however "\" is and you need to write
"2\\9\\2013" for it to show up as "2\3\2013"
Best Wishes
Snoopy.
#4
Re: Writing Special Characters To A Text File
Posted 09 February 2013 - 05:14 AM
snoopy11, on 09 February 2013 - 12:52 PM, said:
I tried to write "2\9\2013" to a text file but failed to do so....
Why would they write a date using backslashes? I mean I get where you're coming from since the OP talked about special characters, but who formats dates using backslashes?
This post has been edited by sepp2k: 09 February 2013 - 05:19 AM
#5
Re: Writing Special Characters To A Text File
Posted 09 February 2013 - 07:11 AM
<sarcasm>
Who uses colons as path separators?
</sarcasm>
Mac OS users.

Seriously, though, it's unlikely that somebody uses backslashes for formatting dates, at least based on what I can see here: http://en.wikipedia....rmat_by_country
Who uses colons as path separators?
</sarcasm>
Mac OS users.
Seriously, though, it's unlikely that somebody uses backslashes for formatting dates, at least based on what I can see here: http://en.wikipedia....rmat_by_country
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote



|