Local Files

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Local Files

Richard Eng
Local Files In Seaside/Squeak, if you open a local file, eg,

file := FileStream fileNamed: ‘MyData’.
contents := file contentsOfEntireFile.

...the file ‘MyData’ is found in the same folder as your Seaside app. How do you change the default location to, say, /var/www (Apache’s DocumentRoot)?

Thanks,
Richard

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Local Files

Alain Fischer-2
Have you tryed with:

file := FileStream fileNamed: ‘/var/www/MyData’.


On 23 oct. 07, at 16:07, Richard Eng wrote:

> In Seaside/Squeak, if you open a local file, eg,
>
> file := FileStream fileNamed: ‘MyData’.
> contents := file contentsOfEntireFile.
>
> ...the file ‘MyData’ is found in the same folder as your Seaside  
> app. How do you change the default location to, say, /var/www  
> (Apache’s DocumentRoot)?
>
> Thanks,
> Richard
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Local Files

Richard Eng
In reply to this post by Richard Eng
Sorry, stupid error on my part. I couldn't get this to work some while back,
but now it works. It was probably related to my earlier problems with Apache
file serving. Again, sorry for the confusion.

Regards,
Richard

--------------------
Alain Fischer wrote:

Have you tryed with:

file := FileStream fileNamed: '/var/www/MyData'.

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside