FileStramHelper.cs 525 B

123456789101112131415161718192021
  1. namespace XRTool.Util
  2. {
  3. /// <summary>
  4. /// 文件流类,封装IO读写方法,避免频繁的读写文件
  5. /// </summary>
  6. public class FileStramHelper
  7. {
  8. /// <summary>
  9. /// 文件读写流
  10. /// </summary>
  11. private string filePath;
  12. /// <summary>
  13. /// 创建一个文件读写流
  14. /// </summary>
  15. /// <param name="filePath"></param>
  16. public FileStramHelper(string filePath)
  17. {
  18. this.filePath = filePath;
  19. }
  20. }
  21. }