ymlHandle.cs 983 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.IO;
  5. namespace System.Fire.yaml {
  6. class ymlHandle {
  7. private string _file;
  8. public ymlHandle() {
  9. }
  10. public ymlHandle(string File) {
  11. this.Load(File);
  12. }
  13. public string File {
  14. get { return this._file; }
  15. set { this._file = value; }
  16. }
  17. public bool Load(string File) {
  18. this._file = File;
  19. return this.initFile(File);
  20. }
  21. public bool Save() {
  22. return false;
  23. }
  24. public bool Save(string File) {
  25. return false;
  26. }
  27. private bool initFile(string File) {
  28. if (System.IO.File.Exists(File) == false) return false;
  29. StreamReader fs = new StreamReader(File);
  30. while (!fs.EndOfStream) {
  31. string line = fs.ReadLine();
  32. }
  33. return false;
  34. }
  35. }
  36. }