Base64 encode data: Difference between revisions

Content added Content deleted
(→‎{{header|Commdore BASIC}}: Add implementation)
Line 492: Line 492:


=={{header|Commodore BASIC}}==
=={{header|Commodore BASIC}}==
Assumes the source file is a PRG on disk, writes encoded file as a SEQ. This is all done in PETSCII; transfer out of Commodore-land will require translation of the Base64-encoded file into ASCII.
Assumes the source file is a PRG on disk drive device 8, writes encoded file as a SEQ to the same disk. This is all done in PETSCII; transfer out of Commodore-land will require translation of the Base64-encoded file into ASCII.


<lang basic>100 rem convert a binary file to base64
<lang basic>100 rem convert a binary file to base64