Rust Taskbook Level 8.1

Задание 1

Given a text file, get the number of characters in it.

Задание 2

Ask the user to enter text via the console. Write the entered text to a file.

Задание 3

You are given a text file with words. Write a program that will wrap each word in parentheses. Write the result to a new file.

Задание 4

You are given a text file with words and fractions of the form 1/2. Write a program that will wrap each fraction in parentheses. Write the result to a new file.

Задание 5

Write a program that will generate the following array:

rust[
  [
    [1, 2, 3],
    [1, 2, 3],
    [1, 2, 3],
  ],
  [
    [1, 2, 3],
    [1, 2, 3],
    [1, 2, 3],
  ],
  [
    [1, 2, 3],
    [1, 2, 3],
    [1, 2, 3],
  ],
}