/// <summary>
 /// Obtains an instance of <seealso cref="CharSource"/> from a file path, specified as a <seealso cref="Path"/>.
 /// This also takes in a specific character set, as a <seealso cref="Charset"/>.
 /// </summary>
 /// <param name="path">  the path to create a <seealso cref="CharSource"/> from </param>
 /// <param name="charset">  the charset to build the new CharSource based on </param>
 /// <returns>  a new instance of <seealso cref="CharSource"/> </returns>
 public static CharSource ofPath(Path path, Charset charset)
 {
     return(MoreFiles.asCharSource(path, charset));
 }
 //---------------------------------------------------------------------------------------------
 /// <summary>
 /// Obtains an instance of <seealso cref="CharSource"/> from a file path, specified as a <seealso cref="Path"/>.
 /// </summary>
 /// <param name="path">  the path to create a <seealso cref="CharSource"/> from </param>
 /// <returns>  a new instance of <seealso cref="CharSource"/> with UTF-8 for charset. </returns>
 public static CharSource ofPath(Path path)
 {
     return(MoreFiles.asCharSource(path, Charsets.UTF_8));
 }