/[RomCheater]/trunk/MSBuild_CurrentVersion/Program.cs
ViewVC logotype

Diff of /trunk/MSBuild_CurrentVersion/Program.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 191 by william, Mon May 28 10:26:01 2012 UTC revision 192 by william, Mon May 28 10:34:02 2012 UTC
# Line 25  namespace MSBuild_CurrentVersion Line 25  namespace MSBuild_CurrentVersion
25    
26              string version_file = "current-version.txt";              string version_file = "current-version.txt";
27              string full_path = string.Format(@"{0}\{1}", asm_path,version_file);              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))              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);                  StreamWriter sw = new StreamWriter(fs);
33                  sw.AutoFlush = true;                  sw.AutoFlush = true;

Legend:
Removed from v.191  
changed lines
  Added in v.192

  ViewVC Help
Powered by ViewVC 1.1.22