Please help In pascal!

Status
Not open for further replies.
write(copy(x.ssn,1,3),'-',copy(x.ssn,4,2),'-',copy(x.ssn,6,4));
^^
Don't you need your outputfile here?

Btw it seems that what you really are doing is, taking a ssn without dashes and adding dashes.

Here is some help:
code:<HR>
Code:
assignfile ();             do em both

reset();                    just got to where you want to go

read();                      from the input
 
write(copy(x.ssn,1,3)...);  to the output

close();                    do em both
 
Status
Not open for further replies.