Filechannel works for input and output

Signed-off-by: Slava Barinov <rayslava@gmail.com>