Hi All
I am working on the project detailed below and need some help please.
The flow diagram is the best I could do, I'm afraid.
I need some direction as to what function to use to undertake the pointing to various lines of text and also the instruction to use to address that text file line.
I appreciate that this is probably not the best approach to the problem, but would like to try my way first, if its possible, as a learning exercise.
I will then approach the group when I have completed the project ( I hope, lol ) to request input with regards to a better, neater approach.
Many thanks in anticipation.
Graham
#A text file that is an English to Greek dictionary and has 2 coulombs.
# As there are many entries it takes up 25 or so pages. The object is to
# produce a file that has 2 x 2 coulombs and so producing half the number
#of pages.
#
# A sample of the original file is shown below
#
#August Αύγουστος (ο)
#aunt θεία η
#autumn φθινόπωρο (το)
#bad, ugly (adj.) άσχημος, -η, -ο
#bad, wicked, evil (adj.) κακός, -ή, -ό
#bank τράπεζα (η)
#basket καλάθι (το)
#otigDict.txt original File
#newDict.txt new dictionary
lif = 1 # Lines_in_File
lpp = 1 # Lines per page, around 72
pc = 1 # Pages completed
lpa = 1 # Line pointer a
lpb = lpa + lpp # Line pointer b
#Open text files , the original to read the other to append
#Calc. Lines in origDict.txt = lif
#Take lines per page from user = lpp (default = 72)
#
# Q
#
#Read line and delete cr = n (using lpa)
#
#Read line = m (using lpb)
#add strings so n + m ( need to look at tab here)[B][/B]
#append to new file
#Print new line
#increment lpa and lpb
#
#lpa = lpp * pc no (loop back to Q)
#
# yes
#
#
#increment pc
#lpa = pc x lpa
#lpb = lpa + lpp
#
#lpb = lif +1 no (loop back to Q)
# yes
#
#Print 'Job Done'