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

Nicola Mingotti nmingotti at gmail.com
Tue Sep 14 06:21:40 PDT 2021


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/18957907/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DirectoryEntry-newFilePathNameext.st
Type: application/vnd.sailingtracker.track
Size: 2175 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20210914/18957907/attachment.bin>


More information about the Cuis-dev mailing list