Hi All – I would like to read in a text file and map the results to a struct, and seem to be hung up.
The data set would look like: Minneapolis\tMN\t55409 Beverly Hills\tCA\t90210 New York City\tNY\t10023 Etc…. Using duck streams: (defn load-data [f] (into [] (ds/read-lines f))) Yields a long sequence of city, state, and zip. I would like to insert those results into a struct (defstruct location :city :state :zip) I have also tried to use something like : (defn process-file [file-name] (with-open [rdr (BufferedReader. (FileReader. file-name))] (doseq [line (line-seq rdr)] _CANNOT_FIGURE_OUT_WHAT_TO_DO_HERE))) Any help would be tremendously appreciated! Thanks Base -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en