read 1 char from source and write to dest file