Add line number; Delete line end white; Fill ' ' at line end.
The short name of this file is LNW (Line eNd White)   中文 Chinese
Line number like   "   1"   regular style.
Line number like   "/* 1*/"   C/C++ style.
123   Specify left/right bracket to enclose line number.
    MATH 123 :: Possible, just fill-in left [MATH ] and right [ :: ].
    Start from number     Shorter number padding
Delete white at left end
Delete white at right end
Delete white at both end
Fill at line right end up to bytes. (line total length)
Please choose one function from above, then click "** RUN **".
     
   
If file size double, running time multiply by FOUR or MORE!
Song-list/URL/song-name output to box 3. You can click copy. 200510262250
Re-size browser window to full screen for wider view.  
Box:1   input      


Box:2   output      (redo=undo)

Box:3 Song URL    (redo=undo)
   (redo=undo)
Button below create innerHTML song list. No copy button. 2005-10-29-12-27
   
   

<a name=941101a>
2005-10-30-18-33
If you want to use auto download program to
download 120 files
from  http://www.java5678.com/code0001.js
 to   http://www.java5678.com/code0120.js
How to create 120 URL lines? This page can help
you to do simpler job.
Create an input file, which has 120 blank lines.
Paste 120 blank lines into box:1 above.
Click third radio button in this page
[[
[fill-AA] 123 [fill-BB]   Specify left/right bracket to enclose line number. 
    MATH 123 :: Possible, just fill-in left [MATH ] and right [ :: ]. 
    Start from number [fill-CC]  Shorter number padding  [fill-DD]
]]

<a name=941101b>
Above [fill-AA] fill in "http://www.java5678.com/code0"
Above [fill-BB] fill in ".js"
Above [fill-CC] fill in "1"
Above [fill-DD] fill in "0"

press "** RUN **" button.
then goto box 2 to get all URL you want.

If you want file from code0001.js to code0080.js
and if you fill in 80 blank lines, then
[fill-AA] must use "http://www.java5678.com/code00"
2005-10-30-18-58


<a name=941105a>
If someone want to translate this page into
other language. Freeman express welcome and
thanks. Freeman is new hand to JavaScript
language. When translate, please pay attention
to one point: Freeman's documentation no one
proof-read. Please help proof-read whole page
while translating. Correct errors or inaccurate
arguments. All of Freeman's web page can be
translated. Thank you. Freeman 2005-11-05-18-05


<a name=941128a> 2005-11-28-11-58 Update this program. There is a minor change. Add code at time stamp "9411281147" (see source) Without this line if input 10 lines and line ten end with end-of-file (not end with newline+eof) Program read total nine newline byte, then add line number function no padding. All of those cases considered behave as designed. Ignored cases run on its own. 2005-11-28-12-03 <a name=941121a> 2005-11-21-10-32 start 2005-11-20 and 2005-11-21 update this program. Change slower code *L*115* document.form0.box02.value+= to faster code *LN122* stringOut+=lineNumberString..... form0.box02 is external variable, slow stringOut is internal variable, fast also add progress percentage display like http://freeman2.com/jslxrxv2.htm did. This display let user know how much is done. Freeman is C/C++ programming outsider. Freeman is JavaScript programming new hand. I can only ask program work. I can not ask to get best code. But code is improving. 2005-11-21-10-42 stop <a name=941121b> 2005-11-21-10-52 start When run program, although status bar suggest "do not click mouse ! click lock up !" Actually even if not click mouse, sometime still lock status bar. Please do not think computer never wake up any more. Inside of computer still running, just no time to take care status bar message. After a while browser return to normal. 2005-11-21-10-56 stop <a name=941104a> 2005-11-04 updated this program. Add function freeman2DotUS() link more song and multimedia files. Add window.status elapse time in seconds *** If input file size < 5k bytes, when file *** size double, run time is about double. *** If input file size < 20k bytes, when file *** size double, run time is more than double. *** If input file size > 50k bytes, when file *** size double, run time is more than 4 times. Please record file size/elapse, do experiments. 2005-11-04-19-11 <a name=941101c> 2005-11-01-13-25 updated this program, add variable isUnicod1 to take care possible Unicode padding character. Old version have un-even output lines if use Unicode padding. New version will have nearly even output lines if use Unicode padding.

2005-Dec Forum/Guestbook sign
Picture used in mainland and Taiwan sign
http://freeman2.com/js941201.gif
Picture used in Mongolia sign 9411281904
http://freeman2.com/js941202.gif

JavaScript program list http://freeman2.com/jsindex2.htm

The address of this page is
http://freeman2.com/jslnwln2.htm
This file started on 2005-10-24, done on 2005-10-29
Thank you for visiting Freeman's web site.
Freeman 2005-10-29-15-56
jslnwln2.htm : JavaScript Line eNd White Line Number.