Re: getParentDirectory




"Huub" <"v.niekerk at hccnet.nl"> wrote in message
news:43611b36$0$773$3a628fcd@xxxxxxxxxxxxxxxxxxxxxxxxxx
>>
>> Have you tried it?
>>
>> Can you think of any alternative plausible behaviour?
>
> I'm trying to, but I have a conversion question. I'm reading String from
> keyboard, which I convert to File:
>
> String tvps = tvpatroon.getText();
> FileSystemView fsv;
> File file = fsv.createFileObject(tvps);
>
> Then I have to convert it back to String in order to display it with
> JOptionPane. Is there a simpler way to do this?

I don't think it gets much easier than a single method call:

fsv.getName();

- Oliver


.



Relevant Pages

  • Re: can someone please help me with making this class
    ... struct and another I put the insert in. ... string phoneNo; ... node *temp, *prev; ...
    (microsoft.public.vc.language)
  • Re: Handling Large files (a few Gb) in Perl
    ... search through each string looking for a specific character. ... my $prev = 0; ... sub use_length { ... Rate index length ...
    (comp.lang.perl.misc)
  • Re: can someone please help me with making this class
    ... string phoneNo; ... node *temp, *prev; ...
    (microsoft.public.vc.language)
  • Re: regex problem
    ... s> Why isn't it deleting the value of $prev in $line? ... >> the code you have there out of pure luck and coincidence. ... BM> string', unless /m is given, in which case it means 'match at ... The relevant bits of the original code are ...
    (comp.lang.perl.misc)
  • Declare function und Pfad
    ... Hallo, wie kann ich den Pfad, der auf eine DLL verweist aus einer Variablen ... ByVal c2 As String, n As Long) As Boolean ... Prev by Date: ...
    (microsoft.public.de.word.vba)