C
Join ServerC#
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:


TTheRanger1/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
TTheRanger1/26/2023
use StreamReader to read data from the file
PPobiega1/26/2023
File.WriteAllText()
and File.ReadAllText()
PPobiega1/26/2023
will be very helpful for a beginner
TTheRanger1/26/2023
or that
DDemurer1/26/2023
aight ok cheers guys
TTheRanger1/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.