User`s guide
save
Purpose Save files and projects in CCS IDE
Note save(cc,filename,'text') produces an error.
Syntax save(cc,'filename','type')
Description save(cc,'filename','type') save the file in CCS IDE id entified by
filename of ty pe ’type’. type iden ti fiesthetypeoffile to save, either
project files when you use ’
project' for type, or text files when you use
'text' for the type option. To save a specific file in CCS IDE, filename
must match the name of the file to save exactly. If you replace filename
with 'all', save writes every open filewhosetypematchesthetype
option. File types recognized by save include these extensions.
type String Affected files
'project'
Project files with the .pjt extension.
'text'
All files with these extensions — a*,.c,.cc,.ccx,
.
cdb,.cmd,.cpp,.lib,.o*,.rcp,and.s*.Notethat
'text' does not save .cfg files.
When you replace filename with the null entry [], save writes to
storage the current active file window in CCS IDE, or the active project
when you specify
project for the type option.
Examples To clarify the different save options, here are commands that save open
files or projects in CCS IDE .
Command Result
save(cc,'all','project')
Save all open projects in
CCS IDE.
save(cc,'my.pjt','project')
Save the project my.pjt.
save(cc,[],project')
Save the active project.
7-145