Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8255599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T01:34:41+00:00 2026-06-08T01:34:41+00:00

How can I create a string with a line feed character in it without

  • 0

How can I create a string with a line feed character in it without adding a carriage return?
Using the Environment.NewLine method on a windows machine returns a CR/LF combo. I need just the LF.

I know about the VBLF in Microsoft.VisualBasic library, but as a company policy we are not allowed to use it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T01:34:44+00:00Added an answer on June 8, 2026 at 1:34 am

    I would recommend using the constants in the ControlChars class to get the individual LF character. Also, I would recommend using the string builder:

    Dim builder As New StringBuilder()
    builder.Append("first line")
    builder.Append(ControlChars.Lf)
    builder.Append("second line")
    builder.Append(ControlChars.Lf)
    builder.Append("third line")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can i create a boost::format type formatter object using the character-string or std::string
How can create a string in JSON after a mysql select: $ritorno = '{Prodotto:'.$riga['Prodotto'].',Prezzo:'.$riga['Prezzo'].'}'
Is there anyway I can create nodes out of a string? I've searched the
In javascript you can create a Date object from a string, like var mydate
In the following example i can create an object dynamically via a string; however,
i want to create a string S , which can be used as an
For laying out a long string into pages, I can use CTFramesetterCreateFrame to create
I am using the NetDataContractSerializer. I can create, add and serialize objects into data
I'm trying to create an itunes-valid podcast feed using php5's simplexml: <?php $xml_string =
I'm trying to create an array of strings that can be randomized and limited

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.