Set cursor position in a file
Lucien via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Apr 10 09:19:51 PDT 2016
Hello,
Is there the possibility to set the cursor position in a file ?
Example:
--------------------
void main()
{
File myFile = File("myFile.txt");
showFile(myFile);
// set cursor pos to 0
showFile(myFile);
}
void showFile(File f)
{
while (!f.eof())
{
write(f.readln());
}
}
--------------------
Thanks in advance.
More information about the Digitalmars-d-learn
mailing list