File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -569,11 +569,17 @@ impl OpenOptions {
569
569
/// end of the file. So, before writing, save the current position (using
570
570
/// [`seek`]`(`[`SeekFrom`]`::`[`Current`]`(0))`, and restore it before the next read.
571
571
///
572
+ /// ## Note
573
+ ///
574
+ /// This function doesn't create the file if it doesn't exist. Use the [`create`]
575
+ /// method to do so.
576
+ ///
572
577
/// [`write()`]: ../../std/fs/struct.File.html#method.write
573
578
/// [`flush()`]: ../../std/fs/struct.File.html#method.flush
574
579
/// [`seek`]: ../../std/fs/struct.File.html#method.seek
575
580
/// [`SeekFrom`]: ../../std/io/enum.SeekFrom.html
576
581
/// [`Current`]: ../../std/io/enum.SeekFrom.html#variant.Current
582
+ /// [`create`]: #method.create
577
583
///
578
584
/// # Examples
579
585
///
You can’t perform that action at this time.
0 commit comments