profileshame

Untitled

May 4th, 2012
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.                 return;
  12.             }
  13.  
  14.             fileOut.WriteLine("### IF YOU EDIT THIS FILE, ONLY EDIT THE NUMBER VALUES ###");
  15.             fileOut.WriteLine("Crimes on arrest warrant (num. of 1-star crimes, then 2 stars, etc.):");
  16.             fileOut.WriteLine(balance);
  17.             fileOut.WriteLine("Days Passed (used to calculate interest):");
  18.             fileOut.WriteLine(daysPassed);
  19.             fileOut.Close();
  20.         }
Advertisement
Add Comment
Please, Sign In to add comment