```
struct filebydchar{
dstring me; alias me this;
this(string s){
import std.file;
import std.conv;
me=readText(s).to!dstring;
}
int i;
dchar front(){
return me[i];
}
void popFront(){
i++;
}
bool empty(){
return i>=me.length;
}
}
```
I would expect a `std.File.byDChar` rather then what may be poor attempts at implementing unicode logic on some c interface
Comment #1 by robert.schadek — 2024-12-01T16:40:53Z