use WRITECODE and READCODE
http://www.picbasic.co.uk/forum/show...light=readcode