Jump to content




fs.open() Help [Error]


  • You cannot reply to this topic
4 replies to this topic

#1 shipmaster4000

  • New Members
  • 3 posts

Posted 04 July 2012 - 09:02 AM

Hello ive recently made a program that uses fs.open()...
The program basicly is
i = fs.open("startup","w")
i.write("print("dog")")
i.close()

Now the problem is, it comes with error, that at line 2 ")" was expected. I have no clue how to fix that...
Any solutions?

#2 Deathknight0897

  • New Members
  • 95 posts

Posted 04 July 2012 - 10:42 AM

u have missed an end bracket ) check ur code

i = fs.open("startup","w")
i.write("print"("dog"))
i.close()
try that not sure though

is that your code or is that example of your code cause really u should use the code button just below smileys

#3 Kolpa

  • New Members
  • 260 posts
  • LocationGermany

Posted 04 July 2012 - 10:56 AM

View PostDeathknight0897, on 04 July 2012 - 10:42 AM, said:

u have missed an end bracket ) check ur code

i = fs.open("startup","w")
i.write("print"("dog"))
i.close()
try that not sure though

is that your code or is that example of your code cause really u should use the code button just below smileys
dammit guys u cant stack strings :/ the " is the Representative of a quote in a string
i = fs.open("startup","w")
i.write("print("dog")")
i.close()


#4 Deathknight0897

  • New Members
  • 95 posts

Posted 04 July 2012 - 11:03 AM

smile and wave boys smile and wave
:P/>

#5 Kolpa

  • New Members
  • 260 posts
  • LocationGermany

Posted 04 July 2012 - 11:24 AM

View PostDeathknight0897, on 04 July 2012 - 11:03 AM, said:

smile and wave boys smile and wave
:P/>
Posted Image





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users