Read a specific line from a file: Difference between revisions
Content added Content deleted
(→{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details) |
(+Stata) |
||
Line 1,554: | Line 1,554: | ||
line := (StandardFileStream oldFileNamed: 'test.txt') contents lineNumber: 7. |
line := (StandardFileStream oldFileNamed: 'test.txt') contents lineNumber: 7. |
||
</lang> |
</lang> |
||
=={{header|Stata}}== |
|||
See '''[http://www.stata.com/help.cgi?use use]''' in Stata help, to load a dataset or a part of it. |
|||
<lang stata>* Read rows 20 to 30 from somedata.dta |
|||
. use somedata in 20/30, clear |
|||
* Read rows such that variable x is positive |
|||
. use somedata if x>0, clear</lang> |
|||
=={{header|Tcl}}== |
=={{header|Tcl}}== |