R

Ravina • 3.96K Points
Extraordinary

Q. Which macro is used to include the contents of a file as a string?

  • (A) read_file!
  • (B) include_str!
  • (C) include!
  • (D) read_str!
  • Correct Answer - Option(B)
  • Views: 7
  • Filed under category Rust
  • Hashtags:

Explanation by: Ravina
`include_str!` includes the file contents as a `&'static str`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.