Microsoft KB Archive/47887

Works Err Msg: “End of File Invalid” When Loading File

PSS ID Number: Q47887 Article last modified on 10-16-1998

1.x 2.00 3.00

MS-DOS

=
========================================================= 1.x 2.00 3.00 MS-DOS kbother ENDUSER

= SUMMARY =

The error message “End of file invalid” (“Invalid end of file” in Works 1.x) is generated for the following reasons:

  The file being opened has an invalid end-of-file marker, and may be corrupt. If the corrupt file is a Word Processing file, you can try deleting the header and opening the file in Works as a text file. To delete the header, use one of the following methods:   Load the file into a text editor such as MS-DOS Editor and delete the file’s header information, which is usually contained in the first line of the file.   Use the MS-DOS Copy command:   Copy Con+filename.WPS newfile.WPS   Type 12 spaces.   Press CTRL+Z and press ENTER to save the file.  

The file can now be opened in Works as if it were a plain text (ASCII) file. Formatting will be lost and garbled characters may appear, but the body text of the document can be recovered. Note: The corruption may be a result of saving to a bad disk or a bad section of a hard drive. Using the MS-DOS CHKDSK utility should verify that the disk or hard drive is usable and files can be written to it. </li>  You are attempting to load a file that is 0 (zero) bytes in length into Works. A 0-length file is a file that has been opened and closed, but no data has been written to it. This file may have been created during an unsuccessful file transfer using the Communications module of Works. If a file is 0 bytes in length, it can be deleted without causing an error. To be certain a file is 0 bytes, use the Run Other Program command in the File menu as follows:   Pull down the File menu by pressing ALT+F. </li>  Use the Run Other Programs option by pressing R. The Run Other Programs dialog box will appear. </li>  Move to the Commands field by pressing the TAB key. </li>  Type DIR, press the SPACEBAR once, then type the name of the file you are looking for. </li>  Press the ENTER key. </li></ol>

The name of your file appears, usually followed by an extension, then the number of bytes the file contains. If the file contains 0 bytes, you can delete the file. </li></ol>

KBCategory: kbother KBSubcategory: dworkskb

Additional reference words: garbage words end of file eof paragraph mark marker control edlin ====================================================================== Version : 1.x 2.00 3.00 Platform : MS-DOS ============================================================================= Copyright Microsoft Corporation 1998.