Writes the contents of a file to the active html page. The file must be located in the ini.txt_path. :param fileName: Name of the file :type fileName: str :return: html code that will be inserted in the HTML file :rtype: str
(fileName)
| 987 | return html |
| 988 | |
| 989 | def file2html(fileName): |
| 990 | """ |
| 991 | Writes the contents of a file to the active html page. The file must be |
| 992 | located in the ini.txt_path. |
| 993 | |
| 994 | :param fileName: Name of the file |
| 995 | :type fileName: str |
| 996 | |
| 997 | :return: html code that will be inserted in the HTML file |
| 998 | :rtype: str |
| 999 | """ |
| 1000 | f = open(ini.txt_path + fileName) |
| 1001 | html = f.read() |
| 1002 | f.close() |
| 1003 | html = _insertHTML(ini.html_path + ini.html_page, html) |
| 1004 | return html |
| 1005 | |
| 1006 | ### HTML links and labels |
| 1007 |
no test coverage detected