Or perhaps I am missing something?
(Hopefully I am missing someting...

![]() |
  | |||||||||||||
![]() |
|
![]() |
||||||||||||
![]() NewLine... where is it?
Started by Moskus, Sep 04 2011 08:21 PM
6 replies to this topic
#1
Posted 04 September 2011 - 08:21 PM
I want to write and read text from files. However, doing that is much harder when I can't do a simple thin as writing a NewLine character.
Or perhaps I am missing something? (Hopefully I am missing someting... ![]()
#2
Posted 04 September 2011 - 09:14 PM Edit - Chris already replied. Edited by Nevyn, 04 September 2011 - 09:16 PM. To be or not to be = 0xFF
Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life Follow @nevynuk on Twitter
#3
Posted 04 September 2011 - 09:14 PM
Hi Moskus,
In Visual Basic, just type "Constants.vbCrLf". You can also add the line "Imports Microsoft.VisualBasic.Constants" to the top of your code file...and then just use the shorter "vbCrLf". I'll see if we can update the project files in the NETMF 4.2 SDK to automatically infer the Constants include. Chris
#4
Posted 05 September 2011 - 06:38 AM
Under constants! I was looking for Controlchars, and finally just searched the .NET Micro Framework for "NewLine". Nothing!
I figured vbCrLf was long gone... Thank you! I was even starting to look for the old Chr(10) + Chr(13) option... ![]()
#5
Posted 05 September 2011 - 09:00 AM
I normally use \r\n escape characters
#6
Posted 05 September 2011 - 09:28 AM Yes, but that just works for C#... ![]()
#7
Posted 05 September 2011 - 04:10 PM
Sorry - I didn't notice this was in the Visual Basic section. I always use the "New Posts" link.
1 user(s) are reading this topic0 members, 1 guests, 0 anonymous users | ||||||||||||||
![]() |
||||||||||||||
![]() |
|
![]() |
||||||||||||
![]() |
This webpage is licensed under a Creative Commons Attribution-ShareAlike License. | ![]() |
||||||||||||
![]() |