fw.write("include(\"<dev/st_port_to_file.bc>\");\n");
fw.write("if (FindFunctionInSymbolHash(gSymbolTable, \"dev_data_transmitter_init\",3) == NULL)\ninclude(\"<dev/data_transmitter.bc>\");\n\nfn dev_st_port_to_file_size(filename, size, port)\n{\n  local receive_device_descriptor = hms_new();\n
    private static void createBCFile() throws Exception     {	FileWriter fw = new FileWriter("fileio.bc");		fw.write("include(\"<dev/basic.bc>\");\n");	fw.write("include(\"<dev/st_port_to_file.bc>\");\n");	fw.write("\n{\n");	//generate the code for the fileReaders	Iterator frs = FileVisitor.fileReaders.iterator();	while (frs.hasNext()) {	    FlatNode node = (FlatNode)frs.next();	    SIRFileReader fr = (SIRFileReader)node.contents;	    fw.write("\tdev_serial_rom_init(\"" + fr.getFileName() + "\", " + 		     getIOPort(Layout.getTile(node)) + 		     ", 1);\n");	}	//generate the code for the file writers	Iterator fws = FileVisitor.fileWriters.iterator();	while (fws.hasNext()) {	    FlatNode node = (FlatNode)fws.next();	    SIRFileWriter sfw = (SIRFileWriter)node.contents;	    fw.write("\tdev_st_port_to_file(\"" + sfw.getFileName() + "\", " + 		     getIOPort(Layout.getTile(node)) + 		     ");\n");	}	fw.write("\n}\n");	fw.close();    }