Skip to content

Can't read files using fs::read and fs::read_to_string #96

Closed
@bugadani

Description

@bugadani

I tried reading files using the fs helper functions read and read_to_string. I was lazy to verify the actual return value, but the length of the returned data was considerably shorter (< 4 bytes) than the contents of the files.

Reading the files using File::open().read() worked as expected. Writing the files using either io::Write or std::fs::write works.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions