
PRINT ascii-art in QBASIC
Quote:
> > LINE INPUT works fine. However, here is a 'BINARY' version:
> > x = FREEFILE
> > OPEN "m.txt" FOR BINARY AS #x
> > b$ = SPACE$(LOF(x))
> > GET #x, , b$
> > CLOSE #x
> > FOR i% = 0 TO 10
> > PRINT MID$(b$, i% * 14 + 1, 14)
> > NEXT
> Too slow!
> --
> Cellphone: 0038631752815
> Don't feel bad about asking/telling me anything, I will always gladly
> reply.
> Digging for info? Try AI Meta Search:
> Http://WWW.AIMetaSearch.Com
> MesonAI -- If nobody else wants to do it, why shouldn't we?(TM)
> Http://WWW.MesonAI.Com
OK Thorsten,
Thanks a lot. It helped me a lot. Here is what I made of it.
I implemented the code that when it reads a carriage it will be
skiped.
On screen(PRINT) it looks fine now but when I print it out (LPRINT) it
makes some errors. I
__________________________________________
CLS
x = FREEFILE
OPEN "A:\alien3.txt" FOR BINARY AS #x
b$ = SPACE$(LOF(x))
GET #x, , b$
FOR m = 1 TO LOF(x)
????????k% = ASC(MID$(b$, m, 1))
????????IF k% <> 13 THEN
????????e$ = CHR$(k%)
????????total$ = total$ + e$
????????END IF
????????NEXT
CLOSE #x
PRINT total$
____________________________________