Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void SaveData()
- {
- StreamWriter fileOut;
- try
- {
- fileOut = new StreamWriter(Path.Combine("scripts", "ArrestWarrant.dat"));
- }
- catch (IOException ex)
- {
- Game.Console.Print(ex.Message);
- return;
- }
- fileOut.WriteLine("### IF YOU EDIT THIS FILE, ONLY EDIT THE NUMBER VALUES ###");
- fileOut.WriteLine("Crimes on arrest warrant (num. of 1-star crimes, then 2 stars, etc.):");
- fileOut.WriteLine(balance);
- fileOut.WriteLine("Days Passed (used to calculate interest):");
- fileOut.WriteLine(daysPassed);
- fileOut.Close();
- }
Advertisement
Add Comment
Please, Sign In to add comment