gonuts | NATS Streaming with KEDA | Messaging library
kandi X-RAY | gonuts Summary
kandi X-RAY | gonuts Summary
NATS Streaming with KEDA
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gonuts
gonuts Key Features
gonuts Examples and Code Snippets
Community Discussions
Trending Discussions on gonuts
QUESTION
I am trying to make a C# app that reads and outputs information from a .txt file and then allows the user to enter more information to the end of that file. I am trying to write the text file in CSV form, and I am having a lot of trouble figuring out how to add to the BOTTOM of the file. It seems that when I try, it overwrites the top line of the file. Any help is appreciated. Here is the code so far, sorry for any confusing lines-- I have been trying many different things i could find online to try to get it working.
...ANSWER
Answered 2018-Jan-04 at 06:32There are two issues with your code
- You have to open file in append mode @ref chetan comment
- You are creating fulltext string before reading from user input due to which its writing empty string to text file.
Please find working program class file below
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gonuts
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page