Login
Back to forumReply to this topicGo to last reply

Posted By

PaulK
on 2008-11-14
23:15:22
 1541 Info Needed

I have never used my 1541 drive for anything else but loading a few games that I have. I would like to use the drive in my game that I am still writing as there is a lot of data involved. So far I have formated the disc but thats as far as I have got as the commands in the manuals are a bit raw. So to get started would anybody be able to tell me the basic commands for open say a file called test, writing the the contents of an array variable Dta(10) and then closing the file. I would then would like to be able to open the file again at a later date and read the data back in. Many thanks

Posted By

SVS
on 2008-11-15
03:42:06
 Re: 1541 Info Needed

Well (assuming device 8, filenumber 3):

OPEN 3,8,3,"TEST,s,w" will create a new SEQuential file to be written
PRINT# 3,data-list ---> see special info I've described in Plus/4 Encyclopedia / BASIC commands / PRINT#
CLOSE 3 will close the file after finished writing

To read it:
OPEN 3,8,3,"TEST" will open the existing SEQuential file to be read
INPUT#3,variables-list
CLOSE 3

Mind the limitations about the input buffer and the separators' rules.

Posted By

PaulK
on 2008-11-15
08:17:16
 Re: 1541 Info Needed

Many thanks for the info much appreciated. As my program is being wrote using an emulator as well, I have formated a disk image - I can write to the disk image, but how can the disk image then be saved for further use at a later date?

Posted By

PaulK
on 2008-11-15
11:44:26
 Re: 1541 Info Needed

No worries, I have managed to do it using Yape



Back to topReply to this topic


Copyright © Plus/4 World Team, 2001-2024. Support Plus/4 World on Patreon