pub fn read_string<P: AsRef<Path>>(ctx: &mut ggez::Context, path: P) -> ggez::GameResult<String> {
	let mut string = String::new();
	let file = &mut ggez::filesystem::open(ctx, path)?;
	file.read_to_string(&mut string)?;
	Ok(string)
}
/// Reads a file from a given path as a string.
Reads a file from a given path as a string.
Reads a file from a given path as a string .
pub fn read_string<P: AsRef<Path>>(ctx: &mut ggez::Context, path: P) -> ggez::GameResult<String> {
	let mut string = String::new();
	let file = &mut ggez::filesystem::open(ctx, path)?;
	file.read_to_string(&mut string)?;
	Ok(string)
}
pub fn read_string < P : AsRef < Path > > ( ctx : & mut ggez :: Context , path : P ) -> ggez :: GameResult < String > { let mut string = String :: new ( ) ; let file = & mut ggez :: filesystem :: open ( ctx , path ) ? ; file . read_to_string ( & mut string ) ? ; Ok ( string ) }
Reads a file from a given path as a string.
Reads a file from a given path as a string .
ctx
&mut ggez::Context
path
P
ctx
&mut ggez::Context
path
P