有关逐行写入的在这里

下面是关于逐行读取

fn maxfilelog finpath =
(
    fin = openfile finpath
    seek fin #eof
    maxlen=filepos fin
    seek fin 0
    res = readChars fin maxlen errorAtEOF:false
    filterString res "\n"
) -- 将文件内容逐行添加到数组

之前想用来记录和读取配置文件,后来发现了更简单的...

getINISetting <filename_string> <section_string> <key_string>     
setINISetting <filename_string> <section_string> <key_string> <key_value_string> [ forceUTF16:<boolean> ]

官方文档

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-03-04
  • 2022-12-23
  • 2021-11-12
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案