07-27-2004, 06:15 AM
First Question is:
If there's a character in the string that I don't want, how do I tell user that they have to input a new string? The valid characters that can be in the string are hex characters, numbers 1 through 9 and letters A through F. And the string must be 8 characters long. Say, the user accidently puts the letter g or something other than the above how could I detect that and tell the user that it's invalid?
Second Question is:
Whenever I write files I always overwrite the whole file each time I write it again. How can I not overwrite the file, and keep the data that was already in there unchanged?
As always, thanks for any help!
If there's a character in the string that I don't want, how do I tell user that they have to input a new string? The valid characters that can be in the string are hex characters, numbers 1 through 9 and letters A through F. And the string must be 8 characters long. Say, the user accidently puts the letter g or something other than the above how could I detect that and tell the user that it's invalid?
Second Question is:
Whenever I write files I always overwrite the whole file each time I write it again. How can I not overwrite the file, and keep the data that was already in there unchanged?
As always, thanks for any help!
quote="na_th_an"]
Greenday, Spice Girls... Can you tell the difference?
[/quote]
Greenday, Spice Girls... Can you tell the difference?
[/quote]