Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lua] Add missing FileHandle.lines() function #10974

Merged
merged 1 commit into from
Feb 19, 2023
Merged

[lua] Add missing FileHandle.lines() function #10974

merged 1 commit into from
Feb 19, 2023

Conversation

sebthom
Copy link
Contributor

@sebthom sebthom commented Feb 18, 2023

This allows to iterate over all available lines of a file handle, e.g.

final fh = lua.Io.popen(cmd);
if (fh != null) {
  for (line in p.lines()) {
    trace(line);
  }
}

This allows to iterate over all available lines of a file handle, e.g.
```haxe
final fh = lua.Io.popen(cmd);
if (fh != null) {
  for (line in p.lines()) {
    trace(line);
  }
}
```
@Simn Simn merged commit 8d4485b into HaxeFoundation:development Feb 19, 2023
@skial skial mentioned this pull request Feb 22, 2023
1 task
@sebthom sebthom deleted the patch-4 branch February 28, 2023 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants