1.方法:
ReadAllBytes
ReadAllLines
ReadAllText
WriteAllLines
WriteAllText
AppendAllText
File类的缺点:只能读小文件,因为是一次性全部加载到内存中,所以受限内存影响。