add fread sample program