Files.ReadAllLines Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| ReadAllLines(IPath, Charset) |
Read all lines from a file. |
| ReadAllLines(IPath) |
Read all lines from a file. |
ReadAllLines(IPath, Charset)
Read all lines from a file.
[Android.Runtime.Register("readAllLines", "(Ljava/nio/file/Path;Ljava/nio/charset/Charset;)Ljava/util/List;", "", ApiSince=26)]
public static System.Collections.Generic.IList<string>? ReadAllLines (Java.Nio.FileNio.IPath? path, Java.Nio.Charset.Charset? cs);
[<Android.Runtime.Register("readAllLines", "(Ljava/nio/file/Path;Ljava/nio/charset/Charset;)Ljava/util/List;", "", ApiSince=26)>]
static member ReadAllLines : Java.Nio.FileNio.IPath * Java.Nio.Charset.Charset -> System.Collections.Generic.IList<string>
Parameters
- path
- IPath
the path to the file
- cs
- Charset
the charset to use for decoding
Returns
the lines from the file as a List; whether the List is modifiable or not is implementation dependent and
therefore not specified
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
ReadAllLines(IPath)
Read all lines from a file.
[Android.Runtime.Register("readAllLines", "(Ljava/nio/file/Path;)Ljava/util/List;", "", ApiSince=26)]
public static System.Collections.Generic.IList<string>? ReadAllLines (Java.Nio.FileNio.IPath? path);
[<Android.Runtime.Register("readAllLines", "(Ljava/nio/file/Path;)Ljava/util/List;", "", ApiSince=26)>]
static member ReadAllLines : Java.Nio.FileNio.IPath -> System.Collections.Generic.IList<string>
Parameters
- path
- IPath
the path to the file
Returns
the lines from the file as a List; whether the List is modifiable or not is implementation dependent and
therefore not specified
- Attributes
Remarks
Java documentation for java.nio.file.Files.readAllLines(java.nio.file.Path).
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.