after pasteing the above programe the line wrap must be unwraped .the results of the prog will be in a file
with the same name as the file scaned with a ".asc" at the end.to see the file names when the prog is run,the files must be
in the same directory as you.all the counts are correct(i think) except the spcs.this prog opens the file with an arbatray
length of 134(the length of a header in a .wav file) and it would be rare for the file to end there.the difference between
the lof and caluated length is the number of spcs from the real end of the file,to the end of the last line in the file when
oppened.
------------------------------------------------------------------
the next prog will take a text file,and find the location of each character from the txt file,and find it's location
in a binary file(jpg seem the best) and put that location in another file.the name of that file is "list.lst".(i'm going to
try pasting it here useing basic)
LIST
10 '"COPY"
20 FILES:INPUT"DIGITAL FILE ";D$'file to scan
30 INPUT "TXT FILE";T$'file to be recreated(coded)
40
OPEN "R",#1,D$,1:IF LOF(1)<1 THEN CLOSE:KILL"D$":GOTO 20
50 FIELD #1,1 AS A$
60 OPEN "R",#2,T$,1:IF LOF(2)<1 THEN
CLOSE:KILL"D$":GOTO 20
70 FIELD #2,1 AS B$
80 OPEN "O",#3,"LIST.LST"'data list
90 FOR T=1 TO LOF(2)
100 GET #2,T'B$
110
GOSUB 140
120 NEXT T
130 CLOSE:END
140 FOR D=1 TO LOF(1)'start scan
150 GET #1,D'A$
160 IF A$=B$ THEN PRINT
#3,D;:RETURN
170 IF D=LOF(1) THEN GOTO 190'chr$ not found
180 NEXT D
190 PRINT"CHR NOT FOUND":CLOSE:END
Ok_
i can't believe IT WORKED well any way.the next prog will be the one to retrive the text file from the binary file(which
be the same file used to create the "list.lst" file in line 80.these are examples of useing basic to access and create
files.i hope they are helpful to some.