JSA LineInput读取丢失数据
源文本
👋 | "{"data":[{"name":"test.xlsx","path":"D:\\Downloads","source":"D:\\桌面"}],"count":1}" |
读取代码
📌 | function read(){ let path=ThisWorkbook.Path+"\\1.txt" let fileNum=FreeFile() Open(path,fileNum,jsInput,jsRead,jsLockWrite) let data="" while(!EOF(fileNum)){ data+=LineInput(fileNum) } Console.log(data) } |
读取结果
🔔 | ""{"data":[{"name":"test.xlsx","path":"D:\\Downloads","source":"D" |
软件版本
💡 | 12.8.2.15209 |
WPS社区反馈员
创作者俱乐部成员
创作者俱乐部成员