file: add exec method, rework read method
-rw-r--r-- 452 CMakeLists.txt
-rw-r--r-- 12417 file.c
-rw-r--r-- 2109 file.h
-rw-r--r-- 1612 main.c
-rw-r--r-- 15787 session.c
-rw-r--r-- 1475 session.h