Assume that a disk file is in place. I need a snippet of ASP (a function that returns TRUE of FALSE) that will verify that the file has the following form:
Each record has three columns of data
Col 1: Alphanumeric or a dash
Col 2: Some white space
Col 3: Numeric data
i'm imagining psuedo-code like this:
function valFile(sFileSpec)
while not EOF
read record
if (any non printable chars) return false
get first data up to white space
if (not alphanumeric(data)) return false
get data to next white space
if (not whitespace(data)) return false;
get data to end of record
if (not numberic(data)) return false;
advance record
loop
return true
end function
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased.
## Platform
asp