Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.36 KB

README.md

File metadata and controls

37 lines (24 loc) · 1.36 KB

Reformat a text file with a maximum line-length

  • Compile project on Windows:

    cl /Fe: txt_fmt.exe txt_fmt\*.cpp

  • Provide target file path and max line-length when executing:

    txt_fmt.exe file.txt 79

  • A new file with a datestamp suffix will be created in the same location as the target file

  • New lines will be preserved in the output file

  • Lines in the resulting text file will not exceed the specified length

C:\Users\user1\Projects\txt_fmt>cat test.txt
Use the keyboard to select letters. Press down to submit a letter-guess; correct letters will appear within the green squares on the letter-board.

Study the unknown phrase after guessing a letter. Try to solve it in as few guesses as possible!

When you are sure of your answer, type it into the solution box and press enter to submit your answer.

C:\Users\user1\Projects\txt_fmt>
C:\Users\user1\Projects\txt_fmt>txt_fmt test.txt 48

C:\Users\user1\Projects\txt_fmt>cat test.txt.Wed_Oct_12_184000_2022
Use the keyboard to select letters. Press down
to submit a letter-guess; correct letters will
appear within the green squares on the
letter-board.

Study the unknown phrase after guessing a
letter. Try to solve it in as few guesses as
possible!

When you are sure of your answer, type it into
the solution box and press enter to submit your
answer.