Creating Text Files

I am currently creating a text file.  I have no problem creating it but do have a problem spacing the information out they way I want it to look.
Print #1, txtSSN & "   " & txtMemID.Text & "    " & txtLast.Text & txtFirst.Text)

I am printing out the information from seperate text boxes and would like the txtLast to be at least 20 characters long before printing out txtFirst, even if the last name is only 5 characters in length.  If you could help me out, I would greatly appreciate it.  Thanks.
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

jbilConnect With a Mentor Commented:
Dim strLast As String * 20
strLast = txtLast.text
Print #1, txtSSN & "   " & txtMemID.Text & "    " & strLast & txtFirst.Text)

jwellisAuthor Commented:
Thank you very much.  Appreciate the help.

All Courses

From novice to tech pro — start learning today.