nothing
09-12-2004, 12:19 AM
I have a loop that looks something like this:
while(there are words in the file)
read a word
write the word to another file\n
Notice the \n at the end of the line that writes the word to the other file. When it reads the last word, it will leave a blank line at the end of the new file and I don't want that. What would be a efficient way to avoid that? Ideas appreciated :D
Thanks.
while(there are words in the file)
read a word
write the word to another file\n
Notice the \n at the end of the line that writes the word to the other file. When it reads the last word, it will leave a blank line at the end of the new file and I don't want that. What would be a efficient way to avoid that? Ideas appreciated :D
Thanks.