Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. problem with stringwriter

problem with stringwriter

Scheduled Pinned Locked Moved C#
helpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    KSEI
    wrote on last edited by
    #1

    Hi, I have a problem with saving a long text with newline characters in richtextbox control to a txt file. I'm using streamwriter to save the text. But the text in the file don't recognize the new line character. Can anyone help solving this problem?

    D 1 Reply Last reply
    0
    • K KSEI

      Hi, I have a problem with saving a long text with newline characters in richtextbox control to a txt file. I'm using streamwriter to save the text. But the text in the file don't recognize the new line character. Can anyone help solving this problem?

      D Offline
      D Offline
      Daniel Turini
      wrote on last edited by
      #2

      Could you give us a small piece of code of what you are trying to do? You can do it on anything you choose - from .bat to .net - A customer

      K 1 Reply Last reply
      0
      • D Daniel Turini

        Could you give us a small piece of code of what you are trying to do? You can do it on anything you choose - from .bat to .net - A customer

        K Offline
        K Offline
        KSEI
        wrote on last edited by
        #3

        This is the example text of richtextbox that i want to save to a txt file : 1. xxx...(the new line) xxx...(the new line) 2. xxx... (the new line) xxx...(the new line) . . . (and so on) The text in the txt file: 1. xxx...xxx...2. xxx...xxx... So, this is the problem. Great thx for helping.:)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups