[Cuis-dev] fileout. Method to create a new filename

Nicola Mingotti nmingotti at gmail.com
Tue Sep 14 09:57:25 PDT 2021


there was a little bug, sorry, here the corrected version.

excuse me Juan, i forgot to put you in copy in the first mail, i do it now.


bye
Nicola



On 9/14/21 3:21 PM, Nicola Mingotti wrote:
>
> Hi Juan, guys,
>
> consider if you wish to add this method. I find it useful.
>
> It is often practical to be able to create uniquely named new file, 
> for example
> for logs, or as container for intermediate computations. This method 
> provides for it.
>
> It has not external dependencies.
>
> ---- Example ----
> '/tmp' asDirectoryEntry newFileName: 'fooTemp' ext: 'txt'. => 
> '/tmp/fooTemp-1.txt'
> '/tmp/fooTemp-1.txt' asFileEntry fileContents: 'foo contents'.
> '/tmp' asDirectoryEntry newFileName: 'fooTemp' ext: 'txt'. => 
> /tmp/fooTemp-2.txt
> -----------------
>
> bye
> Nicola
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20210914/f9f2ab1b/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DirectoryEntry-newFilePathNameext.st
Type: application/vnd.sailingtracker.track
Size: 2176 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20210914/f9f2ab1b/attachment.bin>


More information about the Cuis-dev mailing list