ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/MSBuild_CurrentVersion/Program.cs
(Generate patch)

Comparing trunk/MSBuild_CurrentVersion/Program.cs (file contents):
Revision 191 by william, Mon May 28 10:26:01 2012 UTC vs.
Revision 192 by william, Mon May 28 10:34:02 2012 UTC

# Line 25 | Line 25 | namespace MSBuild_CurrentVersion
25  
26              string version_file = "current-version.txt";
27              string full_path = string.Format(@"{0}\{1}", asm_path,version_file);
28 <            using (FileStream fs = new FileStream(full_path, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.ReadWrite))
28 >            FileInfo fi = new FileInfo(full_path);
29 >            if (fi.Exists) fi.Delete();
30 >            using (FileStream fs = new FileStream(full_path, FileMode.CreateNew, FileAccess.ReadWrite, FileShare.ReadWrite))
31              {
32                  StreamWriter sw = new StreamWriter(fs);
33                  sw.AutoFlush = true;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines