C
C#

help

❔ How do I get one line from my streamwriter to do other stuff

Ddemurer1/26/2023
Hi guys, im still quite new to C# and need some help with my streamwriter as I need to get the bank account to display the bank balance and able to withdraw and deposit but ive been told to use modularitys and im very confused here is my code:
Ttheranger.1/26/2023
u dont get from streamwriter, u write
BBuddy1/26/2023
$details
MMODiX1/26/2023
When you ask a question, make sure you include as much detail as possible. Such as code, the issue you are facing, and what you expect the result to be. Upload code here https://paste.mod.gg/ (see $code for more information on how to paste your code)
Ddemurer1/26/2023
need to write it to a data file and then read it back eventually and this is the only thing i imagine
Ttheranger.1/26/2023
use StreamReader to read data from the file
PPobiega1/26/2023
File.WriteAllText() and File.ReadAllText()
will be very helpful for a beginner
Ttheranger.1/26/2023
or that
Ddemurer1/26/2023
aight ok cheers guys
Ttheranger.1/26/2023
i recommend you store data into a database, or a local database file like SQLite
Ddemurer1/26/2023
its all going into a text file just for the work
AAccord1/27/2023
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Looking for more? Join the community!

Recommended Posts
❔ can't make it PublicHi guys. There's some type problem. Please help me out. I want to declare that variable named 「strinHow to use certificate on HttpClientI'm trying to add a certificate to my http client but on request it gives the exception RemoteCertif❔ credentials in gitso I been using git locally and in a private repo, and I didn't exclude the account credentials from❔ Why styles isn't work when reading from file ?Hi! why that construction isn't work ?❔ How should I correctly interact .NET Core App with client-side app?Hello guys. I'm trying to resolve some issue and would like you to explain me how some things work. ✅ Dockerfile goes where exactly if I have multiple class libraries in a sln?Do we have anyone experienced in docker and has dockerized c# projects because im trying to follow t❔ Jquery UI Datepicker with ASP.NET MVCGod has this problem been a headache... I have this code, which is Creating a datepicker element. ``❔ "proper" structure of the PUT endpointWhats better / more "proper" PUT request - PUT `api/controller/{ID}` and then objectDTO in body - PU❔ What should web api controller return?I can return Ok with some json as parameter. Or I can return simple string For example, I have meth❔ How to read json api data from remote server that uses paging?So I need some direction of how we can pull all data from a json api website that only sends 50 item✅ How Does StreamReader.ReadLine Know When to Stop?I am working with streams and don’t want to grab more data than I need from the stream. I realized s❔ What mistake did I make?attached is my code, but it doesnt generate anything for the objects and has like default values of ❔ Attempting to multiply a number by a decimal, keeps getting 0Hello, I am attempting to multiply a number by .5, and whenever I do the end result is 0.❔ How would i go about sorting my table using entityframework and html?I'm really stuck, the microsoft website has a general outline but i'm really failing to grasp it. Wh❔ Image.FromStreami have this code (below) that im 99% sure was working before, now testing again is giving an error t❔ Why hasn't my class implemented the interface?```public interface IFoo { public IEnumerable<int> Get(); } public class foo: IFoo { public❔ Please Help MeHey I'm trying to make a calculator I got all the operations working just fine but when I'm trying t✅ Binary FormatterWhat is better practice to use rather than binary formatter? VS tells me its obsolete❔ My first time using mySql workbench with c#im trying to connect mysql to my HabitTrackerand i keep getting "Unable to connect to any of the spe✅ Blazor WASM - Dynamic Open Graph ProtocolI'm looking for a bit of help/suggestions with a dynamic OGP using Blazor WASM. Since it's a SPA, I