function,pointer and struct and file I/O (not compeleted)