Edit file File name : jed016.html Content :<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <meta name="generator" content="hevea 2.35"> <link rel="stylesheet" type="text/css" href="jed.css"> <title>Editing Binary Files</title> </head> <body > <a href="jed015.html"><img src="previous_motif.svg" alt="Previous"></a> <a href="index.html"><img src="contents_motif.svg" alt="Up"></a> <a href="jed017.html"><img src="next_motif.svg" alt="Next"></a> <hr> <h2 id="sec33" class="section">15 Editing Binary Files</h2> <p><span style="font-weight:bold">jed</span> may edit binary files as long as the proper precautions are taken. On IBMPC systems, this involves calling the <span style="font-weight:bold">S-Lang</span> function <code class="verb">set_file_translation</code> with an integer argument. If the argument is 0, files are opened as text files; otherwise, they are opened in binary mode. There is no need to call this function for other systems. However, beware of the user variable <code class="verb">ADD_NEWLINE</code> which if non zero, a newline character will be appended to the file if the last character is not a newline character. If you are going to edit binary files, it is probably a good idea to set this variable to zero.</p> <hr> <a href="jed015.html"><img src="previous_motif.svg" alt="Previous"></a> <a href="index.html"><img src="contents_motif.svg" alt="Up"></a> <a href="jed017.html"><img src="next_motif.svg" alt="Next"></a> </body> </html> Save