For Reading data from Text File:
ListRead (lsList, sFileName, frType)Note : Each item in the list can be a maximum of 512 characters.-
For Writing data into Text File:
ListWrite (lsList, sFileName, ftType)But if you want to update the data into Text file. user has to write new functions for that.
Function writedataintotextFile(sFileFullPath,lsTest)
{
HFILE hNoteFile
Int iCount
List of STRING lsTest
hNoteFile =FileOpen(sFileFullPath,2) // 2 For Write , 3:Update 1: Read
for iCount =1 to ListCount(lsTest)
FileWriteLine (hNoteFile,lsTest[iCount])
FileClose (hNoteFile)
}
No comments:
Post a Comment