File Set

By admin  

How to set the text file size dynamically from java code while writing to a file using OubjectOutputStream?

I have written some contents into a text file ie to a notepad in java. How can i set size for that file? That is I have to remove the empty space in the notepad after i wrote the contents in it. Bec while printing that text file using dot matrix printer the paper is scrolling till the end of the file. The printer should stop after it reach the end of file. It shoud not scroll the empty paper. Plz help me..

A text file normaly contains an end-of-file marker at the point at which the file ends.
When you open this file using any text editor (say – notepad) – this character is not viewable.
Now when you print this file – this end-of-file character is send to the printer, which when sensing the same generate a form-feed which will cause the printer to scroll to the next page.

Also in dot matrix you can define paper-size
Check out:-

http://support.microsoft.com/default.aspx?scid=kb;EN-US;103433

eBay Logo  

Pottery Barn Label Drawer Pull Handles Polished Nickel Set of 6 Filing Cabniet


Pottery Barn Label Drawer Pull Handles Polished Nickel Set of 6 Filing Cabniet


$69.99


Brass File Pulls Antique Drawer Set Of 5


Brass File Pulls Antique Drawer Set Of 5


$59.00


Post a Comment

Your email is never shared. Required fields are marked *

*
*