Sujet : Re: saving fileXXX.bmp
De : mikko.levanto (at) *nospam* iki.fi (Mikko)
Groupes : comp.lang.cDate : 25. Mar 2024, 19:28:35
Autres entêtes
Organisation : -
Message-ID : <utsfoj$18c5n$1@dont-email.me>
References : 1 2
User-Agent : Unison/2.2
On 2024-03-24 17:34:25 +0000, Malcolm McLean said:
On 24/03/2024 16:44, fir wrote:
i want to save bitmap (when using editor) but i dont wannt
to pen a dialog for saving ui just wana do quicksave but not replace
the file already exist so i want to maybe use such scheme i will sawe
"painting001.bmp" and if there is such number i will just increase
the number to 002 if such exist i will use 003 and so on
Different operationg systems and file systems have different rules
about valid file names. For example, "painting001.bmp" might be
too long or the character '.' might be invalid. You could check
whether the creation of the file fails and if it does try another
name.
-- Mikko