View Single Post
Old Aug 4th, 2004, 2:00 PM   #1
big_k105
PFO Founder

 
big_k105's Avatar
 
Join Date: Mar 2004
Location: Fargo, ND
Posts: 1,630
Rep Power: 10 big_k105 is on a distinguished road
Send a message via AIM to big_k105 Send a message via MSN to big_k105 Send a message via Yahoo to big_k105
Ok anyway what im wondering is would this end up being easier to put each line read in into its own level of an arrary or would it be easier to just go thought the text and find the end of line and then go from there.

well ok i have to take the data i read in from a file and replace all the chr(10) characters with with chr(13) & chr(10) this way it is readable in windows since the file is a linux file. but when i do this i just replace the 10 with the 13 & 10 would it be easier and probably more optimized to instead just when ever i find a chr(10) to just cut it off right there and put that line into its own level of the array? that when when i manipulate the lines later i dont have to search for the chr(13) & chr(10) again i just have to call the array level i want. would this be the smarter way around this or will it slow my program down? thanks for you help

right now i am not using the array but if it would be better off i will change my code to use an array. thanks again
__________________
BIG K aka Kyle
Programming Forums
Kyle K Online

Please do not PM or email me programming questions. Post them in the forums instead.
big_k105 is offline   Reply With Quote