Reply To: Write text file to embedded library

Home Forums Problems and solutions in GDL GDL add-ons Write text file to embedded library Reply To: Write text file to embedded library

#4320
James Goode
Participant

I’ve also tried to get the file to write and read from a loaded library that isn’t the embedded but it still seems to try to write/read to the embedded library and throws up an error until I move it and then ctrl+shift+alt+R then it begins to work with both the reading object and the writing object. Here is the writing / reading code that I have in my objects;

Writing

chOUT=OPEN ("TEXT", "filelog.TXT", "MODE=WO, LIBRARY")
	OUTPUT chOUT, 1, 1, symb_pos_x
	OUTPUT chOUT, 2, 1, symb_pos_y
	OUTPUT chOUT, 3, 1, symb_pos_z
close chOUT

Reading

chIN=OPEN ("TEXT", "filelog.TXT", "MODE=RO, LIBRARY")
n = input (chIN,1, 1, zxzx)
n1 = input (chIN,2, 1, zxzxz)
n2 = input (chIN,3, 1, zxzxzx)
close chIN