pcbasic | platform emulator for the GW-BASIC family
kandi X-RAY | pcbasic Summary
kandi X-RAY | pcbasic Summary
PC-BASIC - A free, cross-platform emulator for the GW-BASIC family of interpreters
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pcbasic
pcbasic Key Features
pcbasic Examples and Code Snippets
Community Discussions
Trending Discussions on pcbasic
QUESTION
I'm attempting to transfer files to an old PCjr via null modem serial cable. I cobbled up a quick BASIC script to read data from a serial port and write it to a file, but I've discovered every file I save has an extra byte, 0x1a, at the end.
It seems to be caused by the CLOSE
statement, as even OPEN
ing and CLOSE
ing a file without writing anything results in a one-byte file.
I don't want a SUB character at the end of my files, especially binary ones! Is there an alternate way of writing files that prevents this behavior?
(Using the excellent "PC-BASIC" in a Lubuntu VM for demonstration, but this seems to be a "thing" in all variants of BASIC)
...ANSWER
Answered 2018-Nov-06 at 07:05Function to write a string to a data output file without trailing eof char:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pcbasic
No Installation instructions are available at this moment for pcbasic.Refer to component home page for details.
Support
If you have any questions vist the community on GitHub, Stack Overflow.
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page