You are here: Code Snippets
1Page 1 of 1Record 1 to 10 of 10

Code Snippets

Favourite
VOTE 0

Sample Code To Split Large File Into Multiple Smaller Files | C#

Code Snippet » By Blue Cloud On Aug 22, 2012 1:41:18 AM ,

This function can be used to split large file into a number of smaller files.

Categories : Programming | Tags : file IO, split, File, File Operation
Favourite
VOTE 0

C# Extension Method to Get Total File Count in a Folder | C#

Code Snippet » By Blue Cloud On Jan 29, 2012 8:15:57 AM ,

If you want to know how many files exist in a certain directory including all files of subdirectories, you can use this function. There is one exception. It will omit the system restricted file which can not be accessed. Recursively call itself to calculate subdirectories.

Favourite
VOTE 0

Implementing a 301 Redirect On Page Load | C#

Code Snippet » By Blue Cloud On Jan 03, 2012 8:20:36 AM ,

After the old web page has been moved, you should make a 301 redirect to allow visitors or search engines to access it. There are many way to do that. This is one of them.

Categories : ASP.NET, Programming, C# | Tags : 301 Redirect
Favourite
VOTE 0

Verify that the Domain Actually Exists | C#

Code Snippet » By Blue Cloud On Dec 29, 2011 8:11:16 AM ,

Function to check the given domain actually exists or not.

Categories : Web Development, Programming, C# | Tags : Verify Domain
Favourite
VOTE 0

IsMatch Function with Regular Expression | C#

Code Snippet » By Blue Cloud On Dec 29, 2011 7:54:38 AM ,

Function to check the given text and regex pattern is match or not.

Favourite
VOTE 0

Auto Generate New Folder Name | C#

Code Snippet » By Blue Cloud On Dec 27, 2011 11:31:50 PM ,

Function to auto generate the new folder name.

Categories : Programming, C# | Tags : Folder, IO, File Operation
Favourite
VOTE 0

Checking the Path Is File or Directory | C#

Code Snippet » By Blue Cloud On Dec 27, 2011 10:47:27 PM ,

Function to check whether path is directory ( folder ) or not ( file or something else ) .

Categories : Programming, C# | Tags : Directory, Folder, File, IO, File Operation
Favourite
VOTE 0

Genetrate Random Integer | C#

Code Snippet » By Si Thu On Dec 12, 2011 10:20:27 PM ,

Extended C# function to genetrate random integer.

Favourite
VOTE 0

Extended Function to Reverse String | C#

Code Snippet » By Si Thu On Dec 12, 2011 9:59:40 PM ,

C# extended function to reverse the given string.

Categories : Programming, C# | Tags : Extended Function, String, Reverse
Favourite
VOTE 0

Copy File | C#

Code Snippet » By Blue Cloud On Dec 02, 2011 7:53:20 PM ,

Copy file to another location.

Categories : Programming, C# | Tags : copy, file IO
1Page 1 of 1Record 1 to 10 of 10