Computer Science Canada Turing program that creates a .txt file |
Author: | NotNemesis [ Fri Nov 20, 2015 5:11 pm ] | ||
Post subject: | Turing program that creates a .txt file | ||
What is it you are trying to achieve? Hi, I want to create a program that creates a .txt file and names it after what the user inputs. What is the problem you are having? Can't figure out how Turing would make a file o~o I already understand how to have Turing read and write to a file. Describe what you have tried to solve this problem Tried to use Dan's "How to read and write to a file in Turing" but that's only for reading and writing a file that exists. Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
Please specify what version of Turing you are using 4.1 and 4.11 |
Author: | TokenHerbz [ Mon Nov 23, 2015 1:40 pm ] | ||
Post subject: | Re: Turing program that creates a .txt file | ||
I'll try to clear it up a little bit for you. In dan's post, he shows you how to set up a stream to write to files. if said file doesn't exist it creates one, but you need to have a path and a name for your file.
cheers |
Author: | NotNemesis [ Tue Nov 24, 2015 7:47 pm ] |
Post subject: | RE:Turing program that creates a .txt file |
Ohh, I get it now! Thank you ![]() |