Starting streams project, cant write or read properly