- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Working with files in Scala?
Fri, 2009-10-30, 16:32
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
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
Fri, 2009-10-30, 16:57
#2
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
Fri, 2009-10-30, 17:07
#3
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
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