Oct 21, 2003 #1 sumgirl IS-IT--Management Joined Mar 19, 2003 Messages 55 Location US Can anyone tell me how (or point me to how) count the number of lines in a text file?
Oct 30, 2003 #21 tsuji Technical User Joined Jul 25, 2001 Messages 10,675 Location US Hello again, This may turn really urgly, no esthetic, plain mondaine. Code: for i=0 to ubound(acontents)-1 ofile.writeline acontents(i) next ofile.write acontents(ubound(acontents)) 'continue here - tsuji Upvote 0 Downvote
Hello again, This may turn really urgly, no esthetic, plain mondaine. Code: for i=0 to ubound(acontents)-1 ofile.writeline acontents(i) next ofile.write acontents(ubound(acontents)) 'continue here - tsuji
Oct 30, 2003 #22 Phreeneazie Technical User Joined Apr 6, 2003 Messages 27 Location GB In the meanwhile, I spoke to a friend who suggested: if acontents(ubound(acontents)) = "" then redim preserve acontents(ubound(acontents) - 1) end if and that seems to work ok - only that's working on any empty lines within the data I think? Will try your solution ;-) Upvote 0 Downvote
In the meanwhile, I spoke to a friend who suggested: if acontents(ubound(acontents)) = "" then redim preserve acontents(ubound(acontents) - 1) end if and that seems to work ok - only that's working on any empty lines within the data I think? Will try your solution ;-)