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

  • Home
  • SEARCH
  • 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 3875698
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T22:17:48+00:00 2026-05-19T22:17:48+00:00

How to create a text file(.txt) with word wrap property disable , from Visual

  • 0

How to create a text file(.txt) with word wrap property disable , from Visual Studio C#.net?

Actually I am maintaining a log file with some values stored in tabular form, but the table contents exceeds the line limits and I want the table values shows in a single line.

Any way to do it?

Will appreciate your reply!

Regards

  • 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-05-19T22:17:49+00:00Added an answer on May 19, 2026 at 10:17 pm

    You are confusing the Word Wrap with strings in Notepad.. The string you add from C# in txt file is not wrapped.. it may be wrapped when seen in Notepad if WordWrap is on.

    A string stored in txt file will never do any word wrap by itself.. (You dont have any word wrap char only \n for new line).


    Word Wrap is a Feature of any Text Editor it has nothing to do with Actual String (Text). Here are excerpts from wikipedia on its meaning.

    In text display, line wrap is the feature of continuing on a new line 
    when a line is full, such that each line fits in the viewable window, allowing 
    text to be read from top to bottom without any horizontal scrolling.
    
    Word wrap is the additional feature of most text editors, word processors, 
    and web browsers, of breaking lines between and not within words, except 
    when a single wordis longer than a line.

    If you don’t want to wrap Text disable it in the Editor (Like Notpad). You can’t do any thing in the String(Text) itself (Other then adding \n after certain number of words if required).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Create a file called Valid[File].txt and stick some text in it. Start powershell and
Create a flat text file in c++ around 50 - 100 MB with the
How can I create a regular expression that will grab delimited text from a
I have to text file in the following format : Word [tab][tab] Word [Carriage
I need to create an output text file by deleting the first two lines
I have a build script where i create a text report file and output
Hey, I've been working on this problem to read numbers from a text file
I want to create some text in a canvas: myText = self.canvas.create_text(5, 5, anchor=NW,
I'd like to create a text field with a dropdown list that lets the
I need to batch create images with text. Requirements: arbitrary size of bitmap PNG

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.