Using rg parts as crate, redirecting output #2433
Answered
by
BurntSushi
bq-wrongway
asked this question in
Q&A
-
Hi, i would like to add grep / grep_searcher to my small app, but instead of providing sink to printout the result i would like result to be directly redirected and saved to a given file :
Is it possible to achieve something like this ? |
Beta Was this translation helpful? Give feedback.
Answered by
BurntSushi
Feb 28, 2023
Replies: 1 comment 1 reply
-
Well have you tried calling |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
bq-wrongway
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Well have you tried calling
Standard::new
with astd::io::BufReader<std::fs::File>
?