Author Topic: IO library and related queries  (Read 4248 times)

Pilchard123

  • Tester
  • Old Oak
  • ****
  • Thank You
  • -Given: 4
  • -Receive: 24
  • Posts: 932
  • Eufloria: Yes
IO library and related queries
« on: January 20, 2011, 02:00:44 AM »
Does Eufloria support the IO library? Specifically, io.read and io.write?

Also, does it support loadfile? I can't get them to work...

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 4
  • Posts: 1,809
Re: IO library and related queries
« Reply #1 on: January 20, 2011, 08:02:27 AM »
Joel and I spent an hour trying to get io.read and similar commands to work, and had limited success, but eventually gave up.

I think the problem we ran into was related to absolute vs relative paths, we couldn't figure out a way to get it to work how we wanted, so we eventually gave up and tried a different approach for whatever problem we were trying to solve.

I can't really remember any of what we found out about it to be honest.  Sorry.  :/

Pilchard123

  • Tester
  • Old Oak
  • ****
  • Thank You
  • -Given: 4
  • -Receive: 24
  • Posts: 932
  • Eufloria: Yes
Re: IO library and related queries
« Reply #2 on: January 21, 2011, 01:33:09 AM »
Meh, ok. I'll have to have a look at it a bit more. All I want it to do is read and write to a .txt file.

EDIT: A/R, I'd love to know if it's possible, and if so, how. I know you're all busy with other stuff atm, so don't consider this a high priority.
Annikk, what was your 'limited success', and how did you achieve it?
« Last Edit: January 22, 2011, 05:06:31 AM by Pilchard123 »

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 4
  • Posts: 1,809
Re: IO library and related queries
« Reply #3 on: January 22, 2011, 07:33:38 AM »
I think we managed to read a function from a seperate file.  It was limited in that we couldn't find a way to reliably determine the current path of the actual level file, which screwed everything up for some reason..

'fraid I don't remember how we did it.  It was a single command that we found from searching google.