[scala] Working with files in Scala?

View: New views
5 Messages — Rating Filter:   Alert me  

[scala] Working with files in Scala?

by John Warren-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Newb question (sorry if this is the wrong list),

Where in the API are the file operators?   Specifically I want to create a bootstrap file for a CMS so I need to define the current working directory and for some reason this simple operation seems to be eluding my searches.

Can anyone point me in the right, specific, direction?

Thanks,
-John W

Re: [scala] Working with files in Scala?

by Ricky Clarkson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Use Java's libs for that.

2009/10/30 John Warren <jpwarren00@...>:
> Newb question (sorry if this is the wrong list),
> Where in the API are the file operators?   Specifically I want to create a
> bootstrap file for a CMS so I need to define the current working directory
> and for some reason this simple operation seems to be eluding my searches.
> Can anyone point me in the right, specific, direction?
> Thanks,
> -John W



--
Ricky Clarkson
Java and Scala Programmer, AD Holdings
+44 1565 770804
Skype: ricky_clarkson
Google Talk: ricky.clarkson@...
Google Wave: ricky.clarkson@...

Re: [scala] Working with files in Scala?

by Bill Burdick-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

For some reason, they moved a bunch of file goodies into the tools
jar. scala.tools.nsc.io.{Path,Directory,File} all have good stuff in
them.

Bill


On Fri, Oct 30, 2009 at 5:31 PM, John Warren <jpwarren00@...> wrote:
> Newb question (sorry if this is the wrong list),
> Where in the API are the file operators?   Specifically I want to create a
> bootstrap file for a CMS so I need to define the current working directory
> and for some reason this simple operation seems to be eluding my searches.
> Can anyone point me in the right, specific, direction?
> Thanks,
> -John W

Re: [scala] Working with files in Scala?

by Ismael Juma :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 2009-10-30 at 17:43 +0200, Bill Burdick wrote:
> For some reason, they moved a bunch of file goodies into the tools
> jar. scala.tools.nsc.io.{Path,Directory,File} all have good stuff in
> them.

The reason is that some people objected to having them in the standard
library without a more rigorous design and review process.

Best,
Ismael


Re: [scala] Working with files in Scala?

by John Warren-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks!

On Fri, Oct 30, 2009 at 11:48 AM, Ismael Juma <mlists@...> wrote:
On Fri, 2009-10-30 at 17:43 +0200, Bill Burdick wrote:
> For some reason, they moved a bunch of file goodies into the tools
> jar. scala.tools.nsc.io.{Path,Directory,File} all have good stuff in
> them.

The reason is that some people objected to having them in the standard
library without a more rigorous design and review process.

Best,
Ismael