Skip to content

Iterating a file line by line #4247

Answered by frozolotl
TS60 asked this question in Q&A
Discussion options

You must be logged in to vote

Not quite. You should use the following instead:

#for line in read("main.typ").split("\n") {
  //
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TS60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants