Oct 21, 2003 #1 sumgirl IS-IT--Management Mar 19, 2003 55 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 Jul 25, 2001 10,675 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 Apr 6, 2003 27 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 ;-)