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 …

Python – Read JSON File

Tested in Spyder 3.3.3 (for Python 3.7).   employees.json   employees.py Output {‘lname’: ‘Jackson’, ‘fname’: ‘Eddie’, ’email’: ‘EJackson@domain.com’, ‘address’: ‘1111 Right Lane’, ‘title’: ‘Engineer’} {‘lname’: ‘Johnson’, ‘fname’: ‘Darrin’, ’email’: ‘DJohnson@domain.com’, ‘address’: ‘2222 Left Lane’, ‘title’: ‘IT Manager’} {‘lname’: ‘Lee’, ‘fname’: ‘Keith’, ’email’: ‘KLee@domain.com’, ‘address’: ‘3333 Middle Lane’, ‘title’: ‘Executive Assistant’}

Python – Read Text File, Parse Data

Tested in Spyder 3.3.3 (for Python 3.7).   users.txt Jackson, Eddie Bach, Joseph Johnson, Larry Lowe, Daniel Denning, Jeffrey   users.py Output WHOLE TEXT FILE —————— Jackson, Eddie Bach, Joseph Johnson, Larry Lowe, Daniel Denning, Jeffrey LINE BY LINE —————— Line1: Jackson, Eddie Line2: Bach, Joseph Line3: Johnson, Larry Line4: Lowe, Daniel Line5: Denning, Jeffrey Read More …