The following video shows how to read magnetic cards without card reader. Only a tape head from an old cassette deck and the sound card microphone input of a PC is used. An example code for converting a recorded wav-file to plane text you can find here. The code is written in C#. I wrote the phrasing class as a concept for a microcontroller c code. It phrases successful track 2 of credit cards.