B
blackneos940
Guest
Hey, does anyone here play Sonic Adventure 2: Battle, or any of it's OTHER versions.....? Do you like Chao at all.....?? Then THIS Program is for YOU!!..... Well, not quite yet, actually..... It's still in Beta, and I have some issues..... Namely, how do I get input with "x = input()", and write that to a file.....? I'll post the WHOLE file as an Attachment, but here is what I'm really having trouble with..... (Note: I've added some Comments about the issues, which aren't actually in the Code itself..... )
So, what do you think.....? I'm SO excited..... Thank you for any help, guys..... :3
Code:
file_name = input("Enter the File Name now:\n>>> ")
print ("Alright then! As you give each Animal to your Chao, type it's name in the next Prompt! The name isn't case-sensitive, but you DO need to spell it rig
ht!\n")
t.sleep(7)
animal_name = input("Type the Animal's name now:\n>>> ").capitalize #Basically, I want to write the Animal Name to a Text File... :)
with open(file_name + ".txt", "wb") as le_output:
le_output.write(bytes(animal_name, 'UTF-8')) #It gives me an Error! What's up with that?? >:(
le_output.close()
animal_name_2 = input("Got any more Animals to keep track of?\nIf so, write them now! Don\'t worry, I\'ll just add the Animal Name you typed in to the File!\
n>>> ")
So, what do you think.....? I'm SO excited..... Thank you for any help, guys..... :3
Last edited: