hi all, Can anybody explain what exactly is '\f' (form feed). What practical situations do we use it? How to use it? Care to give some examples Thank for the ans.
posted 11 years ago
Sure. When used in a string that will be directed to a printer, it causes the succeeding output to begin on a new page, so it is like a page eject. It instructs the printer to begin the next output on a new page even if the previous page is not yet completely full. Does that help.? For example: "ABC\nDEF\nGHI\fXYZ" will print ABC on the first line, DEF one the second line, GHI on the third line, and XYZ at the top of the next page. ------- ABC DEF GHI
Howard Kushner<br />IBM Certified Enterprise Developer - WebSphere Studio Application Developer V5.0<br />IBM Certified Advanced System Administrator - WebSphere Application Server V5.0<br />IBM Certified Solution Developer - Web Services with WebSphere Studio V5.1<br /><a href="http://www.amazon.com/exec/obidos/tg/detail/-/1931182108/" target="_blank" rel="nofollow">Developing J2EE Applications with WebSphere Studio</a> my Certification Study Guide for IBM Test 287