transfering text from one document to another
Author |
Message |
baby_bubblz
|
Posted: Wed Jan 05, 2005 6:13 pm Post subject: transfering text from one document to another |
|
|
hey, can someone please help me with a problem i have? it would be great..thanks!
question: how do you take text from a txt document (file)and transfer it into another txt (file2), but change it so that there are only 7 words on each line?
i know everything up to the part where you change the style of the text, i already declared the word and counter variable
get: file2, word
counter := counter + 1
if counter = 7 then
put '\n'
how do you restart the counter? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Cervantes
![](http://compsci.ca/v3/uploads/user_avatars/1023105758475ab2e040bde.jpg)
|
Posted: Wed Jan 05, 2005 6:21 pm Post subject: Re: transfering text from one document to another |
|
|
baby_bubblz wrote:
get: file2, word
counter := counter + 1
if counter = 7 then
put '\n'
how do you restart the counter?
It looks like, in your code, you are getting data from file2. Maybe I misunderstood something, but aren't you supposed to write data to file2, and get the data from file1? |
|
|
|
|
![](images/spacer.gif) |
baby_bubblz
|
Posted: Wed Jan 05, 2005 6:32 pm Post subject: (No subject) |
|
|
oh..yes it's supposed to be file1, sorry for the mistake |
|
|
|
|
![](images/spacer.gif) |
baby_bubblz
|
Posted: Wed Jan 05, 2005 6:46 pm Post subject: (No subject) |
|
|
get: file1, word
counter := counter + 1
if counter = 7 then
put '\n'
put: file2, word
counter := 0
end if
is this correct? |
|
|
|
|
![](images/spacer.gif) |
Cervantes
![](http://compsci.ca/v3/uploads/user_avatars/1023105758475ab2e040bde.jpg)
|
|
|
|
![](images/spacer.gif) |
|
|