Welcome Guest. Please Login or Register. Apr 5th, 2018, 11:44pm
ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018. Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.
If you require a dump of the post on your message board, please come to the support board and request it.
Re: Opening a txt file
« Reply #5 on: Apr 27th, 2010, 8:59pm »
I must admit that when reading a file prepared with NotePad (or other text editor) I prefer the GET$# command.
A line in NotePad ends with CHR$10+CHR$13 and GET$# will get everything up to the CHR$10, which means that the next GET$# command will read just the CHR$13, hence the following:
a$=GET$#F%:IFa$=""a$=GET$#F%
If you want to write to a text file, however, BBC BASIC only writes the string plus CHR$10. This means that all the lines run together in NotePad with funny rectangles between them. The solution is to add the CHR$13: