FileIO类

FileIO类提供了对文件系统的操作方法。下面是各个方法的说明:

1. ClearMemory()

2. ClearMemoryAsncy()

3. AddBlankString(int length)

4. Encode(string data)

5. PingIP(string ip)

6. Decode(string data)

7. SetIniPath(string striniFilePath)

8. ReadIniString(string section, string key)

9. ReadIniInt(string section, string key)

10. ReadIniDouble(string section, string key)

11. Replace(string str, string oldStr, string newStr)

12. WriteIniString(string section, string key, string val)

13. DeleteSection(string Section)

14. DeleteKey(string section, string key)

15. GetSectionAllKeys(string Key)

16. ConnTcp(string IPaddress, int Port, int WaitTime = 3)

17. FileWrite(string path, string str, bool append = false, string encoding = "utf-8")

18. GetSectionAllKeys(string Key)

19. FileRead(string path, string encoding = "utf-8")

20. FileCopy(string sourceFileName, string destFileName, bool overwrite = true)

21. CreateFolder(string fileName = null, string filePath = null)

22.FileToBytes(string path)

23.BytesToFile(byte[] bytes, string saveFile)