title: How to read and write on magnetic pvc card in c#
body: <p><br>
  I am new programmer using magnetic reader, and dont know how to begin coding.</p>
  
  <p>Googled some links but couldn't figure out how to do it.</p>
  
  <p>I am trying to develop a program where gift card needs to be generated , user swaps the card fills in details of customer on that card along with the amount. And in future the card swapped and amount is automatically deducted from the card.</p>
  
  <p>What I understand is when card is swapped it generates a unique code, with that code the details are inserted in database. And once the card swapped again it finds that code in database pulls the details and then update or insert respective data in database.</p>
  
  <p>Am I right?
  If yes then can anyone provide sample codes.</p>
  
  <p>Thanks</p>