Read a specific line from a file: Difference between revisions

Content added Content deleted
(K)
Line 1,268: Line 1,268:
<pre>julia> open(line -> read_nth_lines(line, 7), "path/to/file")
<pre>julia> open(line -> read_nth_lines(line, 7), "path/to/file")
"Hi, I am the content of the seventh line\n"</pre>
"Hi, I am the content of the seventh line\n"</pre>

=={{header|K}}==
{{works with|ngn/k}}<syntaxhighlight lang=K>(0:"135-0.txt")7
"will have to check the laws of the country where you are located before\r"</syntaxhighlight>


=={{header|Kotlin}}==
=={{header|Kotlin}}==