The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 3 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
wrapfile [-s] [-wwidth] file ...
-s ==> wrap line after the last space character within the first widthcolumn positions (or at the default wrapping location). If there is no such space character, wrap anyway. This is similar to "word wrap".-w width ==> specify a line width to use instead of the default 40 columns.* There will always one or more filenames on the command line. Filenames are after all options.* filenames do not start with '-'* files are .txt as input files if they exist.
*If the -s option is used and a line wraps at a space, the space character should not appear on the next line*If the wrap point is, for example, 40, then that means that the 41st character goes on the next line*The options can be in any order and might or might not be present.*Each option must have its own "-" preceding it (e.g. it is not permissible to have -sw).*There might or might not be a space between the -w and the specified width.
The program displays the output to the console, each file is processed after each other (one at the time)
Hel-----------lo -----------Sir-----------/Ma-----------dam----------- Â----------- -----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------. P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll