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

Username:   Password: 
 RegisterRegister   
 read/write help
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
kanye_west_owns




PostPosted: Tue May 18, 2004 5:26 pm   Post subject: read/write help

hey guys, i have a question about reading and writing, wen i try to read write, my write works normal, but wen i try to read, it only puts the LAST LINE of the write, meaning the last thing i input in write, it only sees that, but how can i get it to see EVERYTHING, and how can i get write to SAVE EVERYTHING, so for example:

WRITE:
code:


var shit : string
get shit

var location : int
var employeeRecord :
    record

        shit : string (30)

    end record
var fileNo : int
open : fileNo, "dude", write

write : fileNo, shit






READ:

code:


var shit : string
var employeeRecord :
    record
        shit : string (30)
    end record
var fileNo : int
open : fileNo, "dude", read
read : fileNo, shit
put shit
if shit = "poop3" or shit = "poop1" then
put "SUCCESS"
else put "ERRROR"
end if




THIS ONLY RECOGNIZES THE LAST INPUT FOR shit, but i want it to recognize everything that was inputted as shit, not just the last thing
Sponsor
Sponsor
Sponsor
sponsor
Delos




PostPosted: Tue May 18, 2004 8:54 pm   Post subject: (No subject)

Tutorials dude...tutorials!
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  [ 2 Posts ]
Jump to:   


Style:  
Search: