
-----------------------------------
bijx
Wed Apr 02, 2014 6:37 pm

Read and Write Command Help
-----------------------------------
Hello interwebs,

I am trying to write text files in turing, using the open, put, and get command. 

My problem is that I don't fully understand how to use get or read. 

This is my command so far but I don't understand what to do with read. What is the part after my stream variable? Why can't I simply ask it to open the whole file?

[code]
var stream : int
var test : string
open : stream, "Text.txt", put

get test : *


put : stream, test

read : stream, test
[/code]

Thanks,
bijx

-----------------------------------
Tony
Wed Apr 02, 2014 8:26 pm

RE:Read and Write Command Help
-----------------------------------
take a look at the documentation for get is easier to understand than read, as the later deals with binary data instead of text.
