📜  您被要求一次读取一行文件.对于每一行,您必须将其拆分为字段.以下哪一组伪类定义可能更正交? - 打字稿代码示例

📅  最后修改于: 2022-03-11 14:48:33.934000             🧑  作者: Mango

代码示例1
class Split1 {
    constructor(fileName) # opens the file for reading
    def readNextLine() # moves to the next line
    def getField(n) # returns the nth field in the current line
}