how can i make a program that when a preson enter a name it will look for a file ina cretain location and then read several variables from it and then how can i save that file whenchanges are made to the variables?
i also need it to print a custom message if the file was not found not like "file not found"
saving
-
- Veteran
- Posts: 399
- Joined: Wed Mar 02, 2005 9:01 pm
- Location: Nashville, Tennessee
- Contact:
Code: Select all
ON ERROR GOTO FileError
CONST FALSE=0
CONST TRUE=NOT FALSE
Input "Type in the name: ",NAM$
OPEN "c:\your\list\of\names.lst" FOR INPUT ACCESS READ AS #1
LineNumber = 1
NameFound = FALSE
WHILE NOT EOF(1)
LINE INPUT #1, TEMP$
IF UCASE$(TEMP$) = UCASE$(NAM$) THEN
PRINT "The name you specified was found on line ";LineNumber
NameFound=TRUE
END IF
LineNumber = LineNumber+1
If NameFound = FALSE Then Print "The name you specified was not found."
END
FileError:
Print "An error occured while opening your file."
END
As for the avatar... You could, but it has to be hosted on another site. Pete's site has a file limit size that won't support most animations.