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

Did you find this page helpful?