You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
214 B
10 lines
214 B
2 years ago
|
use std::fs;
|
||
|
|
||
|
pub fn get_lines(file_name: String) -> Vec<String> {
|
||
|
fs::read_to_string(file_name)
|
||
|
.expect("Error reading some file")
|
||
|
.lines()
|
||
|
.map(|x| x.to_string())
|
||
|
.collect()
|
||
|
}
|