{"identifier":41996,"topic":"Commands","name":"open file","text":"<code>open file <i>fileName<\/i><\/code> <br><br>\n\n The<code> open file <\/code>command opens the specified file so that you can read data from it and write to it. Usually, the file is an ASCII text file opened to allow importing or exporting text. If the file doesn\u2019t exist, HyperCard creates it. <br><br>\n\n Use the<code> close file <\/code>command to close files after you\u2019ve opened them. <br><br>\n\n Note: You must provide the full path name of the file if it\u2019s not at the same directory level as HyperCard. <br>\n<br>\n If HyperCard has problems opening the specified file, it sets<code> the result <\/code>as follows:<code>  <\/code> Nonexistent file that can't be created: <code><pre>Can't create that file.\n<\/pre><\/code> Existing file already open: <code><pre>File is already open.\n<\/pre><\/code> Other error opening file: <code>Can't open that file.<\/code> <br>\n","related":{"32483":"close","41778":"open","44420":"print","45683":"read","51002":"write"},"examples":"","demo":"","debug":{"9":["open file fileName\r\r"],"10":["\rIf HyperCard has pr"]}}