Skip to content

Format a .txt file's contents and output a new text file using specified line length/limit

Notifications You must be signed in to change notification settings

rootVIII/txt_fmt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Format a .txt file's contents and output a new text file using specified line length/limit

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages