The file object provides three methods of writing data to a file


The file object provides three methods of writing data to a file. These methods allow you to write a string, write a string followed by a n , or write a single byte to a file.
Each method returns true if successful; otherwise it returns false.The syntax is

fileObj.write(string)
fileObj.writeln(string)
fileObj.writeByte(number)

Like most languages, when data is sent to a file it is stored


Like most languages, when data is sent to a file it is stored in a buffer to increase efficiencies.
This internal buffer stores the data until the buffer is full, until the file is closed, or when flushed.Then it physically writes the data into the file.

Just as there are three methods of writing to a file


Just as there are three methods of writing to a file, so there are three methods to reading a file.
You can read a specific number of bytes, read in the entire next line, or read in a single byte. Each method returns true if successful, otherwise it returns false. The syntax is

fileObj.read(count)
fileObj.readln()
fileObj.readByte()

The data in any of your files is stored in either ASCII text format or binary


The data in any of your files is stored in either ASCII text format or binary. The file object has two methods for converting from one format to the other.
Both methods, which follow, are static, so no object is required. The stringToByte method converts the first character of a string into a number. Characters after the first are ignored. The result is a numeric value to the first character or zero.The byteToString method converts a number into a one-character string. If the argument is not a string, the result is an empty string.

LiveWire also allows you to check on the error status of a file


LiveWire also allows you to check on the error status of a file or clear the error status.
Since error status codes are platform dependent, you must check your operating system documentation for the actual codes. The syntax for these methods is

fileObj.error()
fileObj.clearError()

Although JavaScript is still a “fledgling” language


Although JavaScript is still a “fledgling” language, its popularity among Web content developers is growing at an exponential rate.
Providing an easy means to extend the capability of a site without having to write extensive Java applets,JavaScript makes an effective “glue” to integrate Java, frames, and browser plug-ins into one seamless site.

Developing JavaScript-enabled content


Developing JavaScript-enabled content is not always a quick process. It takes some thought, some effort, and a lot of shifting from your editor to your browser… correcting some things and tweaking others.
After you design a few pages, you will develop your own system for editing and testing. The quality of the tool you use is not important; that the tool works for you is.

Netscape Navigator 2.0 is a standard on the Web


Netscape Navigator 2.0 is a standard on the Web; according to some surveys, it is used by 70 percent of all Web surfers.
In an effort to make Web content development easier for the masses, Netscape has released a Gold version of Navigator. Navigator Gold merges the power of Navigator 2.0 with a WYSIWYG-based HTML editor.

Navigator Gold is primarily geared toward


Navigator Gold is primarily geared toward end-user creation of “straightforward” pages, with support limited to HTML 2.0. Rather than bombarding the user with HTML tags, Gold hides all but the end result.
Formatting text, adding headings, creating links, and inserting graphics are all easily accomplished with the click of a mouse. The integration between browser and editor is smooth and clean as well. Any page you load in the browser can be opened in the Editor by choosing File, Edit Document, or by choosing the edit icon on the toolbar.

The Navigator Gold editor loads a document with FRAMESET tags


The Navigator Gold editor loads a document with FRAMESET tags as though it is a frame-disabled browser. Instead of being presented with a multiframe editing session, you are shown the text contained in a NOFRAME tag.
In addition, saving a page with FRAMESET tags results in a “new” page being created with only the content of the NOFRAME tag. This effectively strips the frames from the document.