Current News

Moderator: Mmiscool

User avatar
By Atmega8
#52077 memclear
print "Writing data"
write({hello.bas},{data to write})
print "ready"
end

Error:
Writing dataFailed to reach end of input expression, likely malformed inputSyntax errorHalted at line 3


what do i wrong?
hello.bas exists...

THX
User avatar
By Oldbod
#52128 In the documentation, the { } are used to represent a parameter. This is usually either a literal - eg a quoted string or number, or a variable.

so
write("testfile.dat","somerandomstringdata")
'~or ~
filename1="testfile.dat"
dataitemtosave="somerandomstringdata"
write(filename1,dataitemtosave)

'should work....
User avatar
By Mmiscool
#52131 No need to specify the dat extension. Just the eliment name.