Preparing text files for different OS’s

If you decide to programmatically write out text to a .txt file for viewing later, it might be handy to know these tips. Linux/Unix systems will separate each line of text with a single \n escape, signalling the end of a line. Mac OS reads the end of a line with a single \r carriage… Continue reading Preparing text files for different OS’s

CS50x – End result

I finished the 2017 CS50x course! Although yet to receive my certificate, everything has been handed over with straight 100% grades all the way through. What has it been like? It has been tough. At times, really tough. The most frustrating bits are working on something… And fiddling with a few lines of code to… Continue reading CS50x – End result

Brain Missclicks – Choose the right path

As a work-in-progress programmer, I have produced some really stupid mistakes that has taken way too long to rectify. This time, it’s file manipulation. Messing around with some mined data, I decided to neatly modify and place it (the data) in descriptive files for more managability and control. My specification was to include in the… Continue reading Brain Missclicks – Choose the right path

C: Power of (^) & hex to dec converter

I have spent almost 2 evenings trying to create a C program to convert Hex (0x) into a decimal number. After re-writing it 3 times, I had figured out the logical structure. A previous little program I wrote returned the total decimal value of a provided number of bits. For that program, I was able… Continue reading C: Power of (^) & hex to dec converter