File transfering -- only works with text files