예제 #1
0
파일: Browser.cs 프로젝트: microm/eplib
 public string GetFileFullPath(IODataType dataType, string fileName)
 {
     return Path.Combine(GetPath(dataType), fileName);
 }
예제 #2
0
파일: Browser.cs 프로젝트: microm/eplib
 public string GetPath(IODataType dataType)
 {
     return Path.Combine(FileSystem.RootPath, m_configTable.GetDataTypePath(dataType));
 }
예제 #3
0
파일: Browser.cs 프로젝트: microm/eplib
 public void Delete(IODataType dataType, string filePathFromDataType)
 {
     string path = GetFileFullPath(dataType, filePathFromDataType);
     if (FileSystem.Exists(path)) FileSystem.Delete(path);
 }
예제 #4
0
파일: Browser.cs 프로젝트: microm/eplib
 public bool Exists(IODataType dataType, string filePathFromDataType)
 {
     string path = GetFileFullPath(dataType, filePathFromDataType);
     return FileSystem.Exists(path);
 }
예제 #5
0
파일: Browser.cs 프로젝트: microm/eplib
 public string ReadString(IODataType dataType, string filePathFromDataType)
 {
     byte[] bytes = ReadBytes(dataType, filePathFromDataType);
     return Encoding.Default.GetString(bytes);
 }
예제 #6
0
파일: Browser.cs 프로젝트: microm/eplib
 public Stream Write(IODataType dataType, string filePathFromDataType)
 {
     string path = GetFileFullPath(dataType, filePathFromDataType);
     return FileSystem.Create(path);
 }
예제 #7
0
파일: Browser.cs 프로젝트: microm/eplib
        public byte[] ReadBytes(IODataType dataType, string filePathFromDataType)
        {
            Stream stream = Read(dataType, filePathFromDataType);
            byte[] buffer = new byte[stream.Length];
            stream.Read(buffer, 0, buffer.Length);
            stream.Close();

            return buffer;
        }
예제 #8
0
파일: Browser.cs 프로젝트: microm/eplib
 public Stream Read(IODataType dataType, string filePathFromDataType)
 {
     string path = GetFileFullPath(dataType, filePathFromDataType);
     return FileSystem.Get(path);
 }
예제 #9
0
파일: ConfigTable.cs 프로젝트: microm/eplib
 public void SetDataTypePath(IODataType dataType, string dataTypePath)
 {
     m_paths[(int)dataType] = dataTypePath;//Path.Combine(m_dataDirectory, path);
 }
예제 #10
0
파일: ConfigTable.cs 프로젝트: microm/eplib
 public string GetPath(IODataType type)
 {
     return m_paths[(int)type];
 }
예제 #11
0
파일: ConfigTable.cs 프로젝트: microm/eplib
 public string GetDataTypePath(IODataType dataType)
 {
     return m_paths[(int)dataType];
 }