function matchformat(fname as string, separator as string, mustcount as long) as boolean
dim st as string
close #1
open fname for input as #1
line input #1, st
close #1
matchformat =( (len(st) - len(replace(st,separator,"",,,vbtextcompare)))=mustcount*len(separator))
end function
function getlinefromfile(fname as string, byval linenum as long) as string
dim st as string
close #1
open fname for input as #1
do until linenum = 0
line input #1,st
linenum = linenum - 1
loop
getlinefromfile = st
close #1
end function
Сейчас этот форум просматривают: Yandex-бот и гости: 59