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
  1. Home
  2. General Programming
  3. Visual Basic
  4. writing content into a text file

writing content into a text file

Scheduled Pinned Locked Moved Visual Basic
sysadminquestionhelpworkspace
4 Posts 4 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.
  • R Offline
    R Offline
    Rakesh5
    wrote on last edited by
    #1

    Hi all. i want to write some content into a text file in my application. am getting the input text like this: AGREEMENT, SIGNIFY YOUR DECISION BY CLICKING THE "DO NOT AGREE" BUTTON; AND YOU MAY RETURN THIS PRODUCT (including all materials) TO THE PLACE WHERE YOU OBTAINED IT WITH YOUR RECEIPT WITHIN THIRTY DAYS FOR A FULL REFUND. ATTACHMATE® 1. LICENSE. Attachmate Corporation ("Attachmate") grants you the right to use the Attachmate software programs contained in this package (the "SOFTWARE") on a single personal computer. The SOFTWARE consists of several programs and is licensed as a single product. The SOFTWARE'S component parts may not be separated for use on more than one computer or by more than one user at any time. You may install the SOFTWARE on a network server, ---------------------- i am trying to write this content into a txt file. i tried using put,write,writeline and print almost all the functionalities which i have come across in net. But to my surprise, i am getting the output as follows: IMPORTANT: PLEASE READ THE FOLLOWING LICENSE AGREEMENT CAREFULLY BEFORE CONTINUING BECAUSE THE SOFTWARE PRODUCT IS LICENSED, NOT SOLD. IF YOU PROCEED WITH THE SETUP PROCEDURE (installation) OR USE THE SOFTWARE (OR AUTHORIZE ANY OTHER PERSON TO DO SO) BY CLICKING THE "AGREE" BUTTON, THEN YOU ACCEPT THE TERMS AND CONDITIONS OF THE LICENSE AGREEMENT. IF YOU DO NOT AGREE WITH THE TERMS OF THE LICENSE AGREEMENT, SIGNIFY YOUR DECISION BY CLICKING THE "DO NOT AGREE" BUTTON; AND YOU MAY RETU RN THIS PRODUCT (including all materials) TO THE PLACE WHERE YOU OBTAINED IT WITH YOUR RECEIPT WITHIN THIRTY DAYS FOR A FULL REFUND. ....etc., the problem is, it is not writing exactly what is there in the input.. why it is happening like this? can any one please enlighten me? thanks, rakesh.

    D L M 3 Replies Last reply
    0
    • R Rakesh5

      Hi all. i want to write some content into a text file in my application. am getting the input text like this: AGREEMENT, SIGNIFY YOUR DECISION BY CLICKING THE "DO NOT AGREE" BUTTON; AND YOU MAY RETURN THIS PRODUCT (including all materials) TO THE PLACE WHERE YOU OBTAINED IT WITH YOUR RECEIPT WITHIN THIRTY DAYS FOR A FULL REFUND. ATTACHMATE® 1. LICENSE. Attachmate Corporation ("Attachmate") grants you the right to use the Attachmate software programs contained in this package (the "SOFTWARE") on a single personal computer. The SOFTWARE consists of several programs and is licensed as a single product. The SOFTWARE'S component parts may not be separated for use on more than one computer or by more than one user at any time. You may install the SOFTWARE on a network server, ---------------------- i am trying to write this content into a txt file. i tried using put,write,writeline and print almost all the functionalities which i have come across in net. But to my surprise, i am getting the output as follows: IMPORTANT: PLEASE READ THE FOLLOWING LICENSE AGREEMENT CAREFULLY BEFORE CONTINUING BECAUSE THE SOFTWARE PRODUCT IS LICENSED, NOT SOLD. IF YOU PROCEED WITH THE SETUP PROCEDURE (installation) OR USE THE SOFTWARE (OR AUTHORIZE ANY OTHER PERSON TO DO SO) BY CLICKING THE "AGREE" BUTTON, THEN YOU ACCEPT THE TERMS AND CONDITIONS OF THE LICENSE AGREEMENT. IF YOU DO NOT AGREE WITH THE TERMS OF THE LICENSE AGREEMENT, SIGNIFY YOUR DECISION BY CLICKING THE "DO NOT AGREE" BUTTON; AND YOU MAY RETU RN THIS PRODUCT (including all materials) TO THE PLACE WHERE YOU OBTAINED IT WITH YOUR RECEIPT WITHIN THIRTY DAYS FOR A FULL REFUND. ....etc., the problem is, it is not writing exactly what is there in the input.. why it is happening like this? can any one please enlighten me? thanks, rakesh.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      It's impossible to say without seeing your code that writes the file.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008
      But no longer in 2009...

      1 Reply Last reply
      0
      • R Rakesh5

        Hi all. i want to write some content into a text file in my application. am getting the input text like this: AGREEMENT, SIGNIFY YOUR DECISION BY CLICKING THE "DO NOT AGREE" BUTTON; AND YOU MAY RETURN THIS PRODUCT (including all materials) TO THE PLACE WHERE YOU OBTAINED IT WITH YOUR RECEIPT WITHIN THIRTY DAYS FOR A FULL REFUND. ATTACHMATE® 1. LICENSE. Attachmate Corporation ("Attachmate") grants you the right to use the Attachmate software programs contained in this package (the "SOFTWARE") on a single personal computer. The SOFTWARE consists of several programs and is licensed as a single product. The SOFTWARE'S component parts may not be separated for use on more than one computer or by more than one user at any time. You may install the SOFTWARE on a network server, ---------------------- i am trying to write this content into a txt file. i tried using put,write,writeline and print almost all the functionalities which i have come across in net. But to my surprise, i am getting the output as follows: IMPORTANT: PLEASE READ THE FOLLOWING LICENSE AGREEMENT CAREFULLY BEFORE CONTINUING BECAUSE THE SOFTWARE PRODUCT IS LICENSED, NOT SOLD. IF YOU PROCEED WITH THE SETUP PROCEDURE (installation) OR USE THE SOFTWARE (OR AUTHORIZE ANY OTHER PERSON TO DO SO) BY CLICKING THE "AGREE" BUTTON, THEN YOU ACCEPT THE TERMS AND CONDITIONS OF THE LICENSE AGREEMENT. IF YOU DO NOT AGREE WITH THE TERMS OF THE LICENSE AGREEMENT, SIGNIFY YOUR DECISION BY CLICKING THE "DO NOT AGREE" BUTTON; AND YOU MAY RETU RN THIS PRODUCT (including all materials) TO THE PLACE WHERE YOU OBTAINED IT WITH YOUR RECEIPT WITHIN THIRTY DAYS FOR A FULL REFUND. ....etc., the problem is, it is not writing exactly what is there in the input.. why it is happening like this? can any one please enlighten me? thanks, rakesh.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Probably because you are not adding in new lines where you want the breaks to be.

        Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Individuality is fine, as long as we do it together - F. Burns Help humanity, join the CodeProject grid computing team here

        1 Reply Last reply
        0
        • R Rakesh5

          Hi all. i want to write some content into a text file in my application. am getting the input text like this: AGREEMENT, SIGNIFY YOUR DECISION BY CLICKING THE "DO NOT AGREE" BUTTON; AND YOU MAY RETURN THIS PRODUCT (including all materials) TO THE PLACE WHERE YOU OBTAINED IT WITH YOUR RECEIPT WITHIN THIRTY DAYS FOR A FULL REFUND. ATTACHMATE® 1. LICENSE. Attachmate Corporation ("Attachmate") grants you the right to use the Attachmate software programs contained in this package (the "SOFTWARE") on a single personal computer. The SOFTWARE consists of several programs and is licensed as a single product. The SOFTWARE'S component parts may not be separated for use on more than one computer or by more than one user at any time. You may install the SOFTWARE on a network server, ---------------------- i am trying to write this content into a txt file. i tried using put,write,writeline and print almost all the functionalities which i have come across in net. But to my surprise, i am getting the output as follows: IMPORTANT: PLEASE READ THE FOLLOWING LICENSE AGREEMENT CAREFULLY BEFORE CONTINUING BECAUSE THE SOFTWARE PRODUCT IS LICENSED, NOT SOLD. IF YOU PROCEED WITH THE SETUP PROCEDURE (installation) OR USE THE SOFTWARE (OR AUTHORIZE ANY OTHER PERSON TO DO SO) BY CLICKING THE "AGREE" BUTTON, THEN YOU ACCEPT THE TERMS AND CONDITIONS OF THE LICENSE AGREEMENT. IF YOU DO NOT AGREE WITH THE TERMS OF THE LICENSE AGREEMENT, SIGNIFY YOUR DECISION BY CLICKING THE "DO NOT AGREE" BUTTON; AND YOU MAY RETU RN THIS PRODUCT (including all materials) TO THE PLACE WHERE YOU OBTAINED IT WITH YOUR RECEIPT WITHIN THIRTY DAYS FOR A FULL REFUND. ....etc., the problem is, it is not writing exactly what is there in the input.. why it is happening like this? can any one please enlighten me? thanks, rakesh.

          M Offline
          M Offline
          Md Marufuzzaman
          wrote on last edited by
          #4

          It's not possible to give you a better suggestion unless you post the code snippets...Do you try this by using <b>stringbuilder</b>

          Thanks Md. Marufuzzaman


          Don't forget to click [Vote] / [Good Answer] on the post(s) that helped you. I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.

          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