Oxygen Basic

Information => Open Forum => Topic started by: Frankolinox on April 29, 2013, 05:10:34 AM

Title: simple qt: how to load text file?
Post by: Frankolinox 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
Title: Re: simple qt: how to load text file?
Post by: Charles Pegge 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