Append a record to the end of a text file: Difference between revisions

No edit summary
Line 1,856:
group GECOS {
fullname$,office$,extension$,homephone$,email$
function lineLine$() {
=format$("{0},{1} {2},{3},{4}", .fullname$,.office$,.extension$,.homephone$,.email$)
}
Line 1,862:
directory$, shell$
Function Line$() {
=format$("{0}:{1}:{2}:{3}:{4}:{5}:{6}",.account$,.password$, .UID, .GID, .GECOS.lineLine$(), .directory$, .shell$)
}
class:
Line 1,904:
While not empty
read A
Print #F, A.lineLine$()
End While
Close #F
Line 1,911:
Try ok {
Open "passwd" for wide append exclusive as F
Print #F, Ret.lineLine$()
close #F
}
Line 1,937:
0003|xyz:x:1003:1000:X Yz,Room 1003,(234)555-8913,(234)555-0033:xyz@rosettacode.org:/home/xyz
</pre>
 
 
 
=={{header|Mathematica}} / {{header|Wolfram Language}}==
404

edits