Jump to content

Align columns: Difference between revisions

m
No edit summary
Line 1,315:
// display:
Token Sep ("")
Print("Left Pad:\n", display Left, Newl, "Right Pad:\n", display Right, Newl, "Center Pad:\n", display Center,Newl)
End
</lang>
Line 1,322:
<pre>
$ hopper src/acolumns.bas sample.txt "$"
Left Pad:
Given a text file of many lines, where fields within a line
are delineated by a single 'dollar' character, write a program
Line 1,330:
justified, right justified, or center justified within its column.
 
Right Pad:
Given a text file of many lines, where fields within a line
are delineated by a single 'dollar' character, write a program
Line 1,338:
justified, right justified, or center justified within its column.
 
Center Pad:
Given a text file of many lines, where fields within a line
are delineated by a single 'dollar' character, write a program
Line 1,347:
$
</pre>
 
=={{header|AppleScript}}==
 
543

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.