C
C#2y ago
Matt

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

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:
11 Replies
TheRanger
TheRanger2y ago
u dont get from streamwriter, u write
Buddy
Buddy2y ago
$details
MODiX
MODiX2y ago
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)
Matt
Matt2y ago
need to write it to a data file and then read it back eventually and this is the only thing i imagine
TheRanger
TheRanger2y ago
use StreamReader to read data from the file
Pobiega
Pobiega2y ago
File.WriteAllText() and File.ReadAllText() will be very helpful for a beginner
TheRanger
TheRanger2y ago
or that
Matt
Matt2y ago
aight ok cheers guys
TheRanger
TheRanger2y ago
i recommend you store data into a database, or a local database file like SQLite
Matt
Matt2y ago
its all going into a text file just for the work
Accord
Accord2y ago
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.