class Test def main dirPath = Path.combine(Path.combine(Path.combine(Path.combine(Environment.currentDirectory, '..'), '..'), 'Source'), 'Misc') assert Directory.exists(dirPath) path = Path.combine(dirPath, 'hello.cobra') buffer = StringWriter() using sr = File.openText(path) print to buffer, sr.readLine assert (sr to ?) is nil assert buffer.toString.length