Re: [問題]擷取外部載入的文字
string.substr(4,6)可以擷取string中的第5個字 從第5個字開始算起的6個字
都會被擷取
可是
使用 loadVariables("topic.txt", _root.text)
無法直接採用substr()
如何把loadVariables("topic.txt", _root.text)的內容 存入一個字串呢?
※ 引述《ginnz (go)》之銘言:
: loadVariables("topic.txt", _root.text)
: topic.txt的檔案內容如下:
: content=來進行資料交換的話是較好的作法
: 請問怎樣才能擷取第5~第10的字呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.43.225.108
→
06/01 16:56, , 1F
06/01 16:56, 1F
討論串 (同標題文章)