None the less
this does work in digital, so as long as you stick all the file operations in the digital side (outside the analog block) you can
define the parameter
parameter filename = "myDefaultfile.ext";
initial begin
fileid = $fopen(filename, "w");
$fstrobe(fileid, "header text\n");
end
always @(someevent) $fstrobe(fileid, "data = %d", datavar);
----
if you want to do string processing, I might refer you to a tutorial on Verilog-AMS with some code examples presented at the 2002 BMAS conference.
http://www.bmas-conf.org see the archives for sesson 2 invited tutorial..
Jonathan