![]() |
Forum Index : Microcontroller and PC projects : Big Bug in Random Access
Author | Message | ||||
marcwolf![]() Senior Member ![]() Joined: 08/06/2009 Location: AustraliaPosts: 119 |
Hi. I was working with some random access files and I think have found a fairly major bug (Sorry Grahame) The PRINT #1 command adds a CRLF at the end of the line. So if we have 3 records all 6 bytes long and we use the SEEK command to move to record 2 and change it's value using the PRINT then we will write 6 + 2 (CRLF) characters into the file and thus kill the first 2 bytes of record 3. If you could change the WRITE command NOT to add the CRLF then we can use that. i.e. original 111111222222333333 Change rec in middle (222222 to 444444) 111111444444xx3333 where xx is CRLF Hope this helps Dave Coding Coding Coding.. Keep those keyboards coding.. RAW CODE!!!!! |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6224 |
A semicolon (;) at the end of the expression list will suppress the automatic output of a carriage return/ newline at the end of a print statement. Jim VK7JH MMedit |
||||
marcwolf![]() Senior Member ![]() Joined: 08/06/2009 Location: AustraliaPosts: 119 |
Phew. Many thanks for that Jim. Dave Coding Coding Coding.. Keep those keyboards coding.. RAW CODE!!!!! |
||||
paceman Guru ![]() Joined: 07/10/2011 Location: AustraliaPosts: 1329 |
Yes, and Appendix I (page 60) of the updated Manual for V4.4 gives the rundown. |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |