In a program I am currently creating, users are saved into a file. Is it possible to set it so that a user is automaticly given a membership number in the format XXX, but there has to be three numbers. So user 1 would be, 001.
Also can you shrink a string. So if I have declared a string as string, but the user puts in a filename, such as file.txt, can I remove the .txt extension from the string.