Practice ยท 4 of 4
CSV persistence
CHALLENGE
Difficulty: beginner+25 XP
Implement static string SaveCsv(List<Transaction> ledger, string dir) โ write each transaction as one CSV line id,dir,amount,category (dir as "income"/"expense", amount invariant) into <dir>/ledger.csv, creating the directory; return the full path.
Press Submit to check your solution.
Back to lesson: Practice: Capstone workshop