fn file_into_i32_vec(s: &str) -> Result<Vec<i32>,io::Error>{

	let f = File::open(s)?;

	let reader = BufReader::new(f);

	let mut vec: Vec<i32> = Vec::new();

	for line in reader.lines() {
		let l = match line{
			Ok(str) => str,
			Err(error) => {
				panic!("there was an error parsing the line in the opened file {:?}", error)
			}
			};
		let input: i32 = l.trim().parse().expect("attempted to parse non numeric");
		 vec.push(input);

		};

	Ok(vec)


}
// make function to open a file and put numbers  into vector
make function to open a file and put numbers  into vector
make function to open a file and put numbers into vector
fn file_into_i32_vec(s: &str) -> Result<Vec<i32>,io::Error>{
	let f = File::open(s)?;
	let reader = BufReader::new(f);
	let mut vec: Vec<i32> = Vec::new();
	for line in reader.lines() {
		let l = match line{
			Ok(str) => str,
			Err(error) => {
				panic!("there was an error parsing the line in the opened file {:?}", error)
			}
			};
		let input: i32 = l.trim().parse().expect("attempted to parse non numeric");
		 vec.push(input);
		};
	Ok(vec)
}
fn file_into_i32_vec ( s : & str ) -> Result < Vec < i32 > , io :: Error > { let f = File :: open ( s ) ? ; let reader = BufReader :: new ( f ) ; let mut vec : Vec < i32 > = Vec :: new ( ) ; for line in reader . lines ( ) { let l = match line { Ok ( str ) => str , Err ( error ) => { panic ! ( " " error ) } } ; let input : i32 = l . trim ( ) . parse ( ) . expect ( " " ) ; vec . push ( input ) ; } ; Ok ( vec ) }
make function to open a file and put numbers  into vector
make function to open a file and put numbers into vector
s
&str
s
&str