Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 388 Bytes

README.md

File metadata and controls

16 lines (10 loc) · 388 Bytes

TextAlign

This program reads a file in a number of paragraphs of a text from a file and aligns the text with a line wrapping at a specific length.

Supported alignments:

  1. Left alignment (L)
  2. Righ alignment (R)
  3. Center alignment (C)
  4. Hhyphenating long words (H)

Program usage message:

usage: java AlignText file_name line_length [align_mode]

Default alignment: Left (L).