What information do you need to encode the magnetic stripe?

We need to know the track to encode (1, 2 or 3) and you'll need to supply the data as an excel, .csv or .txt file.