home *** CD-ROM | disk | FTP | other *** search
/ 64'er Special 24 / 64er_Magazin_Sonderheft_24_19xx_Markt__Technik_de_Side_B.d64 / fox-texto (.txt) < prev    next >
Commodore BASIC  |  2022-10-26  |  931b  |  40 lines

  1. 100 rem       fox-texto
  2. 110 rem
  3. 120 rem  01.03.87  by p.engels
  4. 130 rem  ---------------------
  5. 140 rem
  6. 150 printchr$(14)"[147][208]rint[198]ox -> [212]extomat"chr$(13)"  [212]extkonverter"
  7. 160 input"[209]uell-[212]ext: ";qf$:qf$=qf$+",p,r"
  8. 170 input" [218]iel-[212]ext: ";zf$:zf$=zf$+",p,w"
  9. 180 open1,8,3,qf$
  10. 190 open2,8,4,zf$
  11. 200 print:print:get#1,a$:rem textkennung
  12. 210 get#1,a$:ifa$=""thena$=chr$(0)
  13. 220 a=asc(a$):b=0
  14. 230 if(a>96)and(a<123)thenb=a-32:goto370:rem klein
  15. 240 if(a>64)and(a<91)thenb=a+128:goto370:rem gross
  16. 250 if(a>31)and(a<65)thenb=a:goto370:rem ziffern & zeichen
  17. 260 ifa=2thengoto470:rem formatzeile ignorieren
  18. 270 ifa=160thenb=127:rem shift space
  19. 280 ifa=13thenb=95:rem absatz
  20. 290 ifa=91thenb=169:rem ae
  21. 300 ifa=92thenb=168:rem oe
  22. 310 ifa=93thenb=170:rem ue
  23. 320 ifa=123thenb=165:rem ae
  24. 330 ifa=124thenb=161:rem oe
  25. 340 ifa=125thenb=166:rem ue
  26. 350 ifa=126thenb=167:rem sz
  27. 360 :
  28. 370 if(a>31)then printchr$(a);
  29. 380 ifa=13then printchr$(a);
  30. 390 ifst=2goto430:rem file-ende
  31. 400 if b=0goto210
  32. 410 print#2,chr$(b);:goto210
  33. 420 :
  34. 430 print#2
  35. 440 close1:close2
  36. 450 print:print:print"[212]ext ist konvertiert !![146]":end
  37. 460 :
  38. 470 get#1,a$:ifasc(a$)<>13goto470:zeile ueberlesen
  39. 480 goto210
  40.