Ascii files are a royal pain in the backside... you spend more time converting data with scanf() etc. than you do actually processing it... structs are simple, clean and elegant... which is why I recommended it. Decoding and encoding then indexing and maintaining variable length records is just a monumental waste of time...