This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Working with files in Scala?

3 replies
jpwarren00
Joined: 2009-10-18,
User offline. Last seen 2 years 51 weeks ago.
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
wrburdick
Joined: 2009-09-21,
User offline. Last seen 3 years 3 weeks ago.
Re: Working with files in Scala?

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 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

Ricky Clarkson
Joined: 2008-12-19,
User offline. Last seen 3 years 2 weeks ago.
Re: Working with files in Scala?

Use Java's libs for that.

2009/10/30 John Warren :
> 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

ijuma
Joined: 2008-08-20,
User offline. Last seen 22 weeks 2 days ago.
Re: Working with files in Scala?

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

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland