Search found 3 matches

by tcoulon
Thursday 15th February 2018 8:41pm
Forum: General
Topic: Writing a simple text file
Replies: 5
Views: 9363

Re: Writing a simple text file

Hi and welcome. If I read your request correctly there is a very easy way to do this in Gambas. The reason you are getting "Access forbidden" is because you are trying to write your file to the root directory which you are not allowed to do. Your 'Home' directory is the place to save your...
by tcoulon
Thursday 15th February 2018 8:33pm
Forum: General
Topic: Writing a simple text file
Replies: 5
Views: 9363

Re: Writing a simple text file

jornmo wrote: Wednesday 14th February 2018 11:29am Hi and welcome to the forum!

You need to open the file stream first.
Check out the example on the bottom of this page:
http://gambaswiki.org/wiki/lang/open
Thanks. I had read this but it did not help. What I had not understand is that I was trying to write to the root directory.
by tcoulon
Wednesday 14th February 2018 10:08am
Forum: General
Topic: Writing a simple text file
Replies: 5
Views: 9363

Writing a simple text file

Hello. I'm totaly new to Gambas, and although I did some programming in RealBasic (which I am trying to port to Gambas) I can't say I'm a good programmer. I've tried to understand something rather basic, but I can't manage it in Gambas: writing a simple text file. I have the following code: (...) ma...