C# – Extract Email Addresses from Text File

Output Input.txt This text file contains eddiejackson1@test.com AA aa BB bb. This text file contains eddiejackson2@test.com CC cc DD dd. This text file contains eddiejackson3@test.com EE ee FF ff. This text file contains eddiejackson4@test.com 1234567890. This text file contains eddiejackson5@test.com 1234567890. This text file contains eddiejackson6@test.com 1234567890. Output.txt eddiejackson1@test.com eddiejackson2@test.com eddiejackson3@test.com eddiejackson4@test.com eddiejackson5@test.com eddiejackson6@test.com

C# – Encrypt Message to Text File – Decrypt Message from Text File

Using the Security.Cryptography class, you can encrypt and decrypt files pretty easily. I was experimenting with taking a plaintext message, encrypting that message into a text file, and then reading and decrypting the message. Something that fascinates me is the encryption key is stored and can be extrapolated from the text file. Compiled in Microsoft Read More …

Permutation Sort

Permutation Sort is a sorting algorithm based on generating all permutations of the given input and then selecting the sorted one. While conceptually simple, it’s impractical for large datasets due to its extremely high time complexity.   How Permutation Sort Works: Find the Range: Identify the minimum and maximum values in the input array to Read More …

Bucket Sort

Bucket Sort is a distribution-based sorting algorithm that works by dividing the input array into several “buckets,” sorting each bucket individually, and then combining the results. It is effective when the input data is uniformly distributed over a range.   How Bucket Sort Works: Create Buckets: Divide the input elements into several groups (buckets). The Read More …

Radix Sort

Radix Sort is a non-comparative integer sorting algorithm that sorts numbers by processing individual digits. It processes the digits from the least significant digit (LSD) to the most significant digit (MSD) or vice versa. Radix Sort works by distributing numbers into buckets according to each digit, then recombining them in a sorted order.   How Read More …