Emeka,
Your 'file' is an actual file. What you want is it's name.  I think
the last line should look like this:

(println (str "file " (.getName file)))))

I worked on my Mac, I assume it will work in Windows.

Brian

On Jun 9, 11:53 am, Emeka <[email protected]> wrote:
> Sorry for the noise, I was too quick.
>
> On Tue, Jun 9, 2009 at 3:46 PM, Emeka <[email protected]> wrote:
> > Hello All,
>
> > (add-item-action  ost-item (do
> >          (.showOpenDialog file-chooser frame)
> >          (let [file (.getSelectedFile file-chooser)]
> >          (println "file" file))))
>
> > When I tried the above on windows box it prints file #<Win32ShellFolder2
> > C:\clojure\roobot.txt>. But what I want is "file C:\clojure\roobot.txt".
>
> > Regards,
> > Emeka
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to