Quantcast
Channel: Daz Script Developer Discussion - Daz 3D Forums
Viewing all articles
Browse latest Browse all 1036

How to create a new file using DzFile ?

$
0
0

hello,

 

I'm having hard time trying to create a simple .ini file

I know how to read or write an existing file but cannot achieve to create a new one...

var path_file_daz_ini = " B:\\- ALBUM -\\Page 03\\5.Obj\\p03c08_joao.ini"


function create_daz_ini(srcFilePath) {
    
    var srcFile = new DzFile(srcFilePath);
    
    print (srcFilePath)
    if (!srcFile.open(DzFile.ReadOnly)) {
        MessageBox.critical("Could not open file.", "Open File", "&OK", "");
        return;
    }
        
    srcFile.close();
    }
    
 
create_daz_ini(path_file_daz_ini)

 

thanks for your help


Viewing all articles
Browse latest Browse all 1036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>