profileshame

Untitled

May 4th, 2012
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.74 KB | None | 0 0
  1.         private void SaveData()
  2.         {
  3.             StreamWriter fileOut;
  4.             try
  5.             {
  6.                 fileOut = new StreamWriter(Path.Combine("scripts", "ArrestWarrant.dat"));
  7.             }
  8.             catch (IOException ex)
  9.             {
  10.                 Game.Console.Print(ex.Message);
  11.                 Game.DisplayText(ex.Message);
  12.                 return;
  13.             }
  14.  
  15.             fileOut.WriteLine("### IF YOU EDIT THIS FILE, ONLY EDIT THE NUMBER VALUES ###");
  16.             fileOut.WriteLine("Account Balance:");
  17.             fileOut.WriteLine(balance);
  18.             fileOut.WriteLine("Days Passed (used to calculate interest):");
  19.             fileOut.WriteLine(daysPassed);
  20.             fileOut.Close();
  21.         }
Advertisement
Add Comment
Please, Sign In to add comment