Files code snippets (25)

How to create empty file

Published: 1. December 2011 | Updated: 1. December 2011
Categories: Files
Tags: C# File System

How to delete readonly file

Published: 30. November 2011 | Updated: 30. November 2011
Categories: Files
Tags: C# File System Windows

How to calculate file checksum

Published: 4. November 2011 | Updated: 4. November 2011
Categories: Files Security
Tags: C# File System Security Windows

How to append to a text file

Published: 3. November 2011 | Updated: 3. November 2011
Categories: Files
Tags: C# File System Text

How to create text file

Published: 22. December 2008 | Updated: 26. October 2011
Categories: Files Streams
Tags: C# File System

How to decompress file using C#

Published: 18. December 2008 | Updated: 26. October 2011
Categories: Files Streams
Tags: C# File System

How to compress file using C#

Published: 18. December 2008 | Updated: 26. October 2011
Categories: Files Streams
Tags: C# File System

How to get/set file creation, last access or write date-time

Published: 25. October 2011 | Updated: 26. October 2011
Categories: Files
Tags: C# DateTime Windows

How to check that file exists

Published: 13. December 2008 | Updated: 26. October 2011
Categories: Files
Tags: C# Windows

How to set file attributes

Published: 25. October 2011 | Updated: 25. October 2011
Categories: Files
Tags: C# Windows

How to set file to hidden

Published: 25. October 2011 | Updated: 25. October 2011
Categories: Files
Tags: C# Windows

How to get file attributes

Published: 25. October 2011 | Updated: 25. October 2011
Categories: Files
Tags: C# Windows

How to change file extension

Published: 25. October 2011 | Updated: 25. October 2011
Categories: Files
Tags: C# File System Text

How to add file to recent documents

Published: 27. January 2009 | Updated: 26. September 2011
Categories: Files Win32
Tags: C# Win32 Windows

How to get file name from path

Published: 22. January 2009 | Updated: 22. January 2009
Categories: Files
Tags: C# File System Windows

How to get file size

Published: 8. January 2009 | Updated: 8. January 2009
Categories: Files
Tags: C# File System Windows

How to create temporary file

Published: 5. January 2009 | Updated: 5. January 2009
Categories: Files
Tags: C# File System Windows

How to write bytes to file

Published: 22. December 2008 | Updated: 22. December 2008
Categories: Files
Tags: C# File System Windows

How to move file

Published: 21. December 2008 | Updated: 21. December 2008
Categories: Files
Tags: C# File System Windows

How to copy file

Published: 21. December 2008 | Updated: 21. December 2008
Categories: Files
Tags: C# File System Windows

How to delete file

Published: 21. December 2008 | Updated: 21. December 2008
Categories: Files
Tags: C# File System Windows

How to encrypt / decrypt file for current Windows user

Published: 16. December 2008 | Updated: 16. December 2008
Categories: Encryption Files
Tags: C# File System Security Windows

How to read file as bytes

Published: 16. December 2008 | Updated: 16. December 2008
Categories: Files
Tags: C# File System Windows

How to get file extension

Published: 15. December 2008 | Updated: 15. December 2008
Categories: Files
Tags: C# File System Text Windows

How to read text from file

Published: 15. December 2008 | Updated: 15. December 2008
Categories: Files
Tags: C# File System Text