[Pharo-project] StandardFileStream>>forceNewFileNamed: open request window
Hi, I used the method StandardFileStream>>forceNewFileNamed: to create a new file but a window opens all the time telling me that the file doesn't exist and asking what I want to do about it. Is there another way I should use to create a file, and eventually overwrite it if it exists already, without having the system asking me what to do? Thanks, Fabrizio
which pharo version are you using? On 2013-04-15, at 11:31, Fabrizio Perin <fabrizio.perin@gmail.com> wrote:
Hi, I used the method StandardFileStream>>forceNewFileNamed: to create a new file but a window opens all the time telling me that the file doesn't exist and asking what I want to do about it. Is there another way I should use to create a file, and eventually overwrite it if it exists already, without having the system asking me what to do?
Thanks, Fabrizio
I'm in a Moose image 4.8 so Pharo2.0 Latest update: #20595 2013/4/15 Camillo Bruni <camillobruni@gmail.com>
which pharo version are you using?
On 2013-04-15, at 11:31, Fabrizio Perin <fabrizio.perin@gmail.com> wrote:
Hi, I used the method StandardFileStream>>forceNewFileNamed: to create a new file but a window opens all the time telling me that the file doesn't exist and asking what I want to do about it. Is there another way I should use to create a file, and eventually overwrite it if it exists already, without having the system asking me what to do?
Thanks, Fabrizio
Hi, sorry, I figured that the file I was trying to create contained invalid characters, in particular a doublecolumn. Still, I found the behaviour confusing. If the system cannot create the file I should get a clear error message than potentially a window that ask me what to do. Cheers, Fabrizio 2013/4/15 Fabrizio Perin <fabrizio.perin@gmail.com>
I'm in a Moose image 4.8 so
Pharo2.0 Latest update: #20595
2013/4/15 Camillo Bruni <camillobruni@gmail.com>
which pharo version are you using?
On 2013-04-15, at 11:31, Fabrizio Perin <fabrizio.perin@gmail.com> wrote:
Hi, I used the method StandardFileStream>>forceNewFileNamed: to create a new file but a window opens all the time telling me that the file doesn't exist and asking what I want to do about it. Is there another way I should use to create a file, and eventually overwrite it if it exists already, without having the system asking me what to do?
Thanks, Fabrizio
ah right, i think that is one of these pieces that I didn't fully port. BTW did the same happen if you use filesystem directly? 'folderA/folderB/file.txt' asFileReference writeStreamDo: [ :stream| stream << 'some contents' ]. If so, can you open a bug report for it? On 2013-04-15, at 13:31, Fabrizio Perin <fabrizio.perin@gmail.com> wrote:
Hi, sorry, I figured that the file I was trying to create contained invalid characters, in particular a doublecolumn. Still, I found the behaviour confusing. If the system cannot create the file I should get a clear error message than potentially a window that ask me what to do.
Cheers, Fabrizio
2013/4/15 Fabrizio Perin <fabrizio.perin@gmail.com>
I'm in a Moose image 4.8 so
Pharo2.0 Latest update: #20595
2013/4/15 Camillo Bruni <camillobruni@gmail.com>
which pharo version are you using?
On 2013-04-15, at 11:31, Fabrizio Perin <fabrizio.perin@gmail.com> wrote:
Hi, I used the method StandardFileStream>>forceNewFileNamed: to create a new file but a window opens all the time telling me that the file doesn't exist and asking what I want to do about it. Is there another way I should use to create a file, and eventually overwrite it if it exists already, without having the system asking me what to do?
Thanks, Fabrizio
participants (2)
-
Camillo Bruni -
Fabrizio Perin