Author Topic: simple qt: how to load text file?  (Read 1673 times)

0 Members and 1 Guest are viewing this topic.

Frankolinox

  • Guest
simple qt: how to load text file?
« on: April 29, 2013, 05:10:34 AM »
ok, I haven't find here an example at board, but how I can load a simple text file "test.txt" with oxygen? "getfile" ?

frank

Charles Pegge

  • Guest
Re: simple qt: how to load text file?
« Reply #1 on: April 29, 2013, 05:45:47 AM »
Hi Frank, there are two forms of getfile:

string s

s=getfile "t.txt"

getfile "t.txt,s

To save files:
putfile "t.txt",s

I'm thinking about extending these with optional params for offset and length