input from files stored to byte array