2014-01-06 39 views

回答

1

每條記錄​​的新行?

(
    file = memStreamMgr.openFile @"C:\sample.ext" 

    while NOT file.eos() do 
    (
     local line = filterString (file.readLine()) ", " 
     if line.count == 4 AND isValidNode (local obj = getNodeByName line[4]) do 
      obj.pos = [line[1] as float, line[2] as float, line[3] as float] 
    ) 
    memStreamMgr.close file 
)