Fix #6915 - working on handling this.xxxx = function() { }
[roojspacker] / tests / utftest.vala
1
2
3
4  
5  
6     public static int main (string[] args) {
7         
8          string filename = "/tmp/data.txt";
9
10         // Writing
11         string content = "hello, worl d简体 繁體";
12         FileUtils.set_contents (filename, content);
13
14         // Reading
15         string read;
16         FileUtils.get_contents (filename, out read);
17
18         stdout.printf ("The content of file '%s' is:\n%s\n", filename, read);
19  
20         
21         return 0;
22     }