Post by debluzz on Oct 15, 2018 19:20:24 GMT -5
i'm looking for some kind of counter for the prog below.
need to be able to grab each line in set of 6 lines + the spaces
there are 8 sets of 6
NO line spaces
<data>"test_22.txt"
5 1 1 1 1 3 31.02 4
4 5 8 8 8 9 31.67 4
4 7 1 1 3 1 31.15 5
5 1 1 2 2 3 31.14 4
5 3 3 4 4 9 31.44 4
5 8 5 4 6 9 32.07 3
4 4 3 3 1 3 31.00 4
4 8 2 2 2 2 30.89 4
8 5 7 5 5 1 31.20 4
1 7 6 8 8 9 31.89 4
5 6 7 7 5 6 31.18 4
3 7 5 4 5 7 31.36 4
4 7 8 6 5 3 31.31 3
6 4 4 4 2 1 31.05 3
2 8 4 3 2 5 30.68 3
6 7 6 5 5 6 31.17 3
6 5 8 7 8 6 31.38 3
4 2 2 2 1 3 30.88 4
6 3 5 4 6 3 31.33 3
2 2 1 1 5 4 31.32 3
5 2 1 1 1 2 31.03 3
8 1 1 1 2 2 31.27 3
4 7 7 8 8 9 31.80 4
2 6 3 3 4 8 31.43 4
5 2 7 7 7 9 31.86 2
2 4 4 4 4 9 31.24 2
3 6 8 7 7 9 32.08 2
3 6 4 8 8 9 31.87 1
7 4 6 8 8 9 31.44 1
1 4 3 6 6 9 31.40 1
5 5 6 6 7 9 31.12 2
5 6 6 6 6 6 31.21 2
5 7 6 6 5 6 30.92 2
1 5 5 3 3 4 30.72 2
3 5 5 2 1 1 30.74 3
8 3 3 3 2 2 31.32 3
6 2 2 2 1 5 31.07 4
5 5 4 4 2 3 31.05 4
2 8 4 3 2 7 31.33 4
4 6 8 7 6 9 31.59 4
7 4 4 4 4 5 31.16 4
5 7 8 8 8 7 31.71 4
3 1 2 2 3 3 30.79 3
7 7 7 7 6 9 31.33 3
3 6 2 2 1 4 30.78 4
5 3 5 6 5 6 31.35 3
5 7 6 7 6 6 31.31 3
6 6 7 5 4 8 31.89 3
</data>
'********************program******************
<code>'COMBINE_FILES_2test.bas
nomainwin
open "test_22.txt" for binary as #fileIn
content$ =input$( #fileIn, lof( #fileIn)) <<<<<<problem: How would I give a (line count 6-lines at a time) value to the contents$ or #filein ? >>>>>>>>>
close #fileIn
(this line is where I need to place the code) I think?
(the files below should each contain the same 6-lines of data after run)
(I then would like to be able to jump down to the next set of 6 lines ect.. ect..)
open "lines1.DAT" for binary as #fileOut1
open "CURRENT_6.txt" for binary as #fileOut2
open "lines1.txt" for binary as #fileOut3
#fileOut1 trim$(content$)
#fileOut2 trim$(content$)
#fileOut3 trim$(content$)
close #fileOut1
close #fileOut2
close #fileOut3
'"DONE w/SORTING-----NOW WILL RUN"
</code>