Ruben J=F6nsson wrote: > Hi, > > Make the size of CodCred 101, ascCod 101 and ascCred 401 chars long. > This makes > space for the terminating 0 that fscanf puts there and where you do > CodCred[100][1]=3D0; This is actually the 101st element in the array > since it is > 0 indexed. > > It is also a good idea to make sure that fscanf cant put more than > 100+1 and > 400+1 characters in the char arrays. Perhaps use fread istead of > fscanf to > limit the number of characters. > > /Ruben Ruben, as Kevin also said, fread is a better choice. The problem was that and is solved. thank you. Dennis Crawley -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist