Hi everyone,
I'm relatively new to coding, but what experience I do have is mostly in C#.
A brief explanation of what I'm doing.
I'm trying to put together an application to help with my business. its windows forms in C#. I'm going to use this application mainly to write new quotes, edit quotes, and view/print quotes. I've put together a form using multiple text boxes to enter my information into, first name, last name, phone number, etc.
My problem, and Question to you.
I've tried using a stream writer to save to a file and I even tried a JSON file system. I either get a blank save file, or all the text boxes are jumbled together.
What would be the best method to save all the information correctly and also be able to open in another form to view and print later on?
Thanks!
Vishal JoshiPosted Aug 4, 2022, 6:37 AM
Vishal YelvePosted Aug 4, 2022, 5:21 AM
Nitin SontakkePosted Aug 4, 2022, 4:57 AM
Nitin SontakkePosted Aug 4, 2022, 4:54 AM
Sam HobbsPosted Aug 4, 2022, 4:48 AM
I think you will need to provide some sample source code. At least a sample of the output that shows all the text boxes together into one line.
Are you writing all the data using one WriteLine? If so then use a separate WriteLine for each item.
A blank save file can be the result of not calling the Flush method. See the documentation about that.
Amit MohantyPosted Aug 4, 2022, 4:44 AM
Alex CampbellPosted Aug 3, 2022, 3:29 PM
Vishal YelvePosted Aug 3, 2022, 2:34 PM