If ReadFile(0, "Test1.txt")   ; if the file could be read, we continue...
  If CreateFile(1, "Test2.txt") 
  While Eof(0) = 0     ; loop as long the 'end of file' isn't reached
    Astring$=ReadString(0)
    A$=StringField(Astring$,1,",")
    B$=StringField(Astring$,2,",")
    WriteStringN(1, A$+","+B$)
    Wend
    CloseFile(0)               ; close the previously opened file
    CloseFile(1)
    EndIf
  Else
    MessageRequester("信息","文件无法打开!")
  EndIf

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-14
  • 2021-09-14
  • 2022-12-23
  • 2021-07-11
  • 2022-12-23
  • 2021-06-10
猜你喜欢
  • 2022-02-26
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
相关资源
相似解决方案