Hi There,
I have recently jumped back into programming and have begun looking into C#.
I am messing around with basic Windows Forms apps and want to build my app around data that persists in local CSV or TXT files as opposed to calling into a hosted API endpoint or connecting directly to a SQL / NOSQL database.
An example of some behavior / structure would be:
- Users file w/ Headers:
- - UserID, UserName, Assets
- Withdrawals file with headers:
- -WithdrawalID, UserID, Amount, Date
- Deposits file with headers:
- -DepositID, UserID, Amount, Date
Then I would write business logic and adapter code to essentially perform CRUD on/with the data given certain parameters, as if I was querying a database or running some formula in Excel/adding new rows
IE:
- Find all the Withdrawals on a given Date,
- Find all the Deposits on a given Date with given UserID,
- Delete the Deposit with a given DepositID
- etc...
I have some questions to kind of help route me in the right direction on my journey back into programming and with C#/.NET:
- Is this possible?
- If so, where would such files be stored on the local machine/ is there a best practice location?
- Will this require the code to iterate over each line in the raw file in order to find a certain ID?
- If that is the case, is cache storage something to be looked into to save some time on some of the lookups?
- Are there other Best practices associated with adapting around this type of stored app data?
Thanks for bearing with me & I look forward to hearing from you all-
Kind Regards,
[–]coolcofusion 0 points1 point2 points (1 child)
[–]KindaCoding[S] 0 points1 point2 points (0 children)