A quick verification... If I cut&paste your code below, I get: "error: Unable to find opcode entry for 'fprints' with matching argument types: Found: (null) fprints SSS" OTOH, the "%s" in fprints is essentially superfluous here. If I just use " fprints(Sfilename, Sname)" It works fine! A definite bug, I'd say! -- Pete -- On Tue, Mar 30, 2021 at 11:36:37PM +0200, Jeanette C. wrote: > Hey hey, > I have problems printing an Svariable (string) to a file. Consider these > instruments: > > instr Print > Sname chnget "MyString" > Sfilename = strcat(Sname, ".txt") > fprints(Sfilename,"%s", Sname) > turnoff > endin > > instr Caller > Sname = "Output" > chnset(Sname, "MyString") > schedule("Print", 0, .1) > turnoff > endin > > Of course, in the real code the string Sname is generated dynamically. The > output is only one control character ( Sfilename is properly created, so Sname should be valid and assigned when > the fprints opcode runs. > > Best wishes, > > Jeanette > > -- > * Website: http://juliencoder.de - for summer is a state of sound > * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g > * Audiobombs: https://www.audiobombs.com/users/jeanette_c > * GitHub: https://github.com/jeanette-c > > Top down, on the strip > Lookin' in the mirror > I'm checkin' out my lipstick <3 > (Britney Spears) > > Csound mailing list > Csound@listserv.heanet.ie > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND > Send bugs reports to > https://github.com/csound/csound/issues > Discussions of bugs and features can be posted here Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here