Re: Aligning data printed to files
- Posted by Lucius Hilley <lhilley at CDC.NET> Jun 12, 1999
- 367 views
No. You will have to count the cursor positions of the data as you output to the file. This can be SOMEWHAT trivial. \n = 10 -- New line but DOS doesn't reset to far left \r = 13 -- In DOS it resets to far Left but in UNIX I don'tknow the results. character 12 is Form Feed -- New page for printers and tends to clear the screen in DOS. Unknown to me what happens in UNIX. In most text editors I think it is displayed as a funny P like character or it may signify a new line. GOOD LUCK. Lucius L. Hilley III lhilley at cdc.net +----------+--------------+--------------+ | Hollow | ICQ: 9638898 | AIM: LLHIII | | Horse +--------------+--------------+ | Software | http://www.cdc.net/~lhilley | +----------+-----------------------------+ -----Original Message----- From: Derek Brown <Cyrusbrown at AOL.COM> To: EUPHORIA at LISTSERV.MUOHIO.EDU <EUPHORIA at LISTSERV.MUOHIO.EDU> Date: Wednesday, June 09, 1999 8:28 PM Subject: Aligning data printed to files >---------------------- Information from the mail header ----------------------- >Sender: Euphoria Programming for MS-DOS <EUPHORIA at LISTSERV.MUOHIO.EDU> >Poster: Derek Brown <Cyrusbrown at AOL.COM> >Subject: Aligning data printed to files >--------------------------------------------------------------------------- ---- > > Is there a mirror of the get_position() and position() functions for files? > I'm trying to print some text, and I can align it on the screen with those >functions, but there seem to be no alignment functions for files. Where() >and seek() won't be of much use in this case. Any help here is appreciated. > >Thanks, >Derek Brown >