read/write help
Author |
Message |
kanye_west_owns
|
Posted: 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
|
|
|
Delos
|
|
|
|
|
|
|