Kevin Timmerman wrote: > These two lines are very dangerous... > > fscanf(pf,"%s",&ascCred); > fscanf(pf,"%s",&ascCod); //load into a string variable > > A buffer overflow will trash Cod[] and *pf > > Don't use scanf() if you want stable and secure code. Should I use fread ? Thank you, Kevin -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist