Hi,

I need this logic:

```
auto range = File(fn).byLine();
foreach (line; range) {
  if (comeCond(line)) {
     // skip the next n line
     // and continue the foreach loop from the (n+1) line
  } else {
     regularProcess(line);
  }
}
```

Is it possible to do this in a foreach loop?

If not, how can I achieve that, esp. when reading a file line-by-line? do I have to read the whole file into memory, and split by line and using regular `for` loop?

Reply via email to