Read a specific line from a file: Difference between revisions
Content added Content deleted
(K) |
m (→{{header|K}}) |
||
Line 1,272: | Line 1,272: | ||
{{works with|ngn/k}}<syntaxhighlight lang=K>(0:"135-0.txt")7 |
{{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> |
"will have to check the laws of the country where you are located before\r"</syntaxhighlight> |
||
Note that line 0 is the first line of the file. If you dislike the concept of a "zeroth line", you should use 7-1 rather than 7 to retrieve the seventh line: |
|||
<syntaxhighlight lang=K>(0:"135-0.txt")7-1 |
|||
"www.gutenberg.org. If you are not located in the United States, you\r"</syntaxhighlight> |
|||
=={{header|Kotlin}}== |
=={{header|Kotlin}}== |