geting textfile by drag and drop lazarus / 13-General ---------------------------------------------------------------------- cybertom · 2005-12-02 13:12 by dropping a file on my application, each line of the file should be put in a "array of string"-Variable. How can i do this?? how can I get the length of this array? Example: Quote File:Quote Line1 Line2 Line3  :arrow: mystringvar[0]='Line1' mystringvar[1]='Line2' mystringvar[2]='Line3' [/quote] ---------------------------------------------------------------------- Marc · 2005-12-02 14:30 Maybe you can use a TStringList. OIt isn't an array, but behaves a bit like it and does exactly what you want. It can read from (text)files,  and each line can be accessed by stringlist[n]