qs.c - read file