I want to write manual data into a new/existing file based on condition met in program. Is there any available command or script to do this ?
targetFile = outfile(targetFileName "a") ;"a"-append, "w"-overwritefprintf(targetFile "%s" stringVariable) ;or different variable type configurationclose(targetFile)
See the help for complete description of these functions.
Thanks for the response .
I gone through the above functions.
I tried the below exactly
fprintf(stopM "%s" stopLayers)
The command executed without errors but it written nothing into file. Please let mw know where I am making mistake
You have to close the file port. Try,
alternatively - if you want to see the file's content before closing the file descriptor - you might as well flush the buffer:
there should be no error. I don't know what type of data are contained in your "stopLayers".
It's probably a list, so then you have to you "%L" formatting. Look up fprintf function in Cadence help.