writing content into a text file
-
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.
-
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.
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... -
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.
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
-
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.
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.