fork(2) download
  1. using System;
  2. using System.IO;
  3. using System.Text;
  4.  
  5. public class Test
  6. {
  7. public static void Main()
  8. {
  9. FileStream myFile = File.Create("Date.txt");
  10. BinaryWriter file_Date
  11. = new BinaryWriter(
  12. myFile,
  13. System.Text.Encoding.Default);
  14. }
  15. }
Runtime error #stdin #stdout #stderr 0.04s 21520KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Unhandled Exception:
System.UnauthorizedAccessException: Access to the path "/home/g686rb/Date.txt" is denied.
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <6649516e5b3542319fb262b421af0adb>:0 
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize) [0x00000] in <6649516e5b3542319fb262b421af0adb>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int)
  at System.IO.File.Create (System.String path, System.Int32 bufferSize) [0x00000] in <6649516e5b3542319fb262b421af0adb>:0 
  at System.IO.File.Create (System.String path) [0x00000] in <6649516e5b3542319fb262b421af0adb>:0 
  at Test.Main () [0x00000] in <42e440baebee4fe9aba3a5c18483af85>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.UnauthorizedAccessException: Access to the path "/home/g686rb/Date.txt" is denied.
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <6649516e5b3542319fb262b421af0adb>:0 
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize) [0x00000] in <6649516e5b3542319fb262b421af0adb>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int)
  at System.IO.File.Create (System.String path, System.Int32 bufferSize) [0x00000] in <6649516e5b3542319fb262b421af0adb>:0 
  at System.IO.File.Create (System.String path) [0x00000] in <6649516e5b3542319fb262b421af0adb>:0 
  at Test.Main () [0x00000] in <42e440baebee4fe9aba3a5c18483af85>:0