Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private bool Change(string strFile)
- {
- bool flag;
- try
- {
- using (FileStream stream = new FileStream(strFile, FileMode.Open, FileAccess.ReadWrite))
- {
- stream.Position = stream.Length;
- byte[] array = null;
- Array.Resize<byte>(ref array, 1);
- stream.Write(array, 0, 1);
- stream.Flush();
- stream.Close();
- }
- flag = true;
- }
- catch (Exception exception1)
- {
- ProjectData.SetProjectError(exception1);
- Exception exception = exception1;
- flag = false;
- ProjectData.ClearProjectError();
- }
- return flag;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement