Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Creation of some sort of document?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
tjmoore1993




PostPosted: Wed Apr 01, 2009 2:50 pm   Post subject: Creation of some sort of document?

I have been reading books and reading guides on this forum but never have I seen a complete version of my answer so I must ask for some sort of link or brief instructions.

I am trying to make a program that creates files instead of reading or writing. If it is possible a solution would be greatly appreciated Smile

EX:
When a user enters in a name and information it makes them a file like "name.txt".
Sponsor
Sponsor
Sponsor
sponsor
DemonWasp




PostPosted: Wed Apr 01, 2009 3:00 pm   Post subject: RE:Creation of some sort of document?

Open a file for put access and then close it without putting anything. This creates the file, but leaves it empty. Looks like this:

Turing:

var stream : int
open : stream, "C:\\test.txt", put
close : stream
tjmoore1993




PostPosted: Wed Apr 01, 2009 4:50 pm   Post subject: Re: RE:Creation of some sort of document?

DemonWasp @ Wed Apr 01, 2009 3:00 pm wrote:
Open a file for put access and then close it without putting anything. This creates the file, but leaves it empty. Looks like this:

Turing:

var stream : int
open : stream, "C:\\test.txt", put
close : stream

THANKS :O
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: