Error using dynare: preprocessing failed

Hi all,

I’m trying to replicate Iacoviello & Minetti’s 2006 two country RBC model with domestic and foreign lenders.
However, each time I try to run the code in matlab (i.e. dynare “filename”.mod) it returns the following error message:

Starting Dynare (version 4.4.1).
Starting preprocessing of the model file …
ERROR: Could not open file: “filename”.mod

Error using fprintf
Invalid file identifier. Use fopen to generate a valid file identifier.

Error in dynare (line 162)
fprintf(fid, ‘%s’, result);

I have never received this error message before even though I am follow the exact same steps in attempting to run the model. Any help would be greatly appreciated. Attached is my .mod file in case it is the source of the problem.
monday1.mod (9.23 KB)

Why do you have the quote signs in your call to the mod-file, i.e. the " "?

The quote signs were just there as place holders for the actual variable names. I’ve solved the issue now, made a rookie error in that I saved my .mod file in a folder for which I didn’t have admin rights. Soon as I changed that dynare ran as usual. Appreciate the response!