On Tuesday, 7 May 2019 at 17:29:34 UTC, Daniel N wrote:
On Tuesday, 7 May 2019 at 15:13:05 UTC, Andrea Fontana wrote:

import std;
void main()
{
  std.file.write("/tmp/test", "hello");
}

How should I fix this?

import std;
import file = std.file;
void main()
{
  file.write("/tmp/test", "hello");
}

Alternatively, you can use toFile. It was created because of these std.file - std.stdio overlap:

https://dlang.org/phobos/std_stdio.html#.toFile

Reply via email to