No room for the string terminator.... unsigned char ascCod[400]; //este array contiene unsigned char ascCred[100]; //este array contiene Files are 400 & 100 bytes long. Scanf will null terminate the string, so at least 401 & 101 bytes are needed for the buffers. Classic "Buffer Overflow" Consider using C# or Java. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist