Go to the FreeLists Home Page Home Signup Help Login
 



[arachne] || [Date Prev] [10-2005 Date Index] [Date Next] || [Thread Prev] [10-2005 Thread Index] [Thread Next]

[arachne] Re: My misbehaving ISP (base64 test)

  • From: "Greg Mayman" <gmone@xxxxxxxxxx>
  • To: arachne@xxxxxxxxxxxxx
  • Date: Thu, 06 Oct 2005 14:24:42 +0930
Arachne at FreeLists---The Arachne Fan Club!

On Wed, 05 Oct 2005 13:35:52 -0500, Samuel W. Heywood wrote:

> BTW, if anyone knows of a good freeware program that will automagically
> apply the ">" prefixes to all the lines of a text file, please let me
> know about it.

In QBASIC...

   OPEN from_file$ FOR INPUT AS #1
   OPEN to_file$ FOR OUTPUT AS #2
   DO UNTIL EOF(1)
        LINE INPUT #1, x$
        x$ = ">" + x$
        PRINT #2, X$
   LOOP
   CLOSE

where from_file$ and to_file$ are the names of the respective
input and output files.

Alternatively, there is a program called ASIC ("it's almost
BASIC") which compiles the code as an EXE file that's even more
compact and faster than the interpreted BASIC version.

.   ,-./\      from Greg Mayman, in Adelaide, South Australia
.  /     \     "Queen City of The South"    34:55 S  138:36 E
.  \_,-*_/
.       v     homepage http://users.tpg.com.au/gmone/index.htm

Arachne at FreeLists
-- Arachne, The Web Browser/Suite for DOS and Linux --





[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.