Posted 15 September 2012 - 03:36 PM
First, here's my code…
print("Choose a name for your computer!")
write("*")
computerName = read()
fs.copy("disk/boogaos.bga","boogaos.bga")
fs.makeDir("boogaos")
config = fs.open("boogaos/boogaos.cfg", "w")
config.writeLine(version)
config.writeLine(computerName)
config.close()
logfile = fs.open("boogaos/boogaos.log", "w")
logfile.writeLine("[INFO] Log File Created")
logfile.writeLine("[INFO] Installed BoogaOS Version "..version)
logfile.writeLine("[INFO] Server configuration file created at boogaos/boogaos.cfg!")
logfile.close()
The config file displays the version and the computer name in the same line with nothing between them. However, The log file works correctly, putting each line separately. I see no difference between these 2, any help?