file input block: remove unused variable

Signed-off-by: Sergei Ianovich <ynvich@gmail.com>
file input block: fix case

Signed-off-by: Sergei Ianovich <ynvich@gmail.com>
file output block: write to file

Signed-off-by: Sergei Ianovich <ynvich@gmail.com>