OK, I think my issue was I was using open(filename, "r+"), but i imagine
that implies it must be able to be 'read' first?
Thank you! I'll try this out now, hopefully it works :)
On Tuesday, February 17, 2015 at 10:57:25 AM UTC-5, Patrick O'Leary wrote:
>
> On Tuesday, February 17, 2015 at 9:51:21 AM UTC-6, Michael Bullman wrote:
>>
>> Hi all,
>>
>> sorry if this is simple question. But I'm used to using python's open()
>> file function which will create a file if the file does not already exist.
>> Does this functionality exist in julia and I just messed up something? Or
>> is this missing and I should create my textfiles before hand?
>>
>
> Is the file being opened for writing?
>
> fh = open("myfile.txt", "w")
>
> Without the "w", the file will be read-only, and if it doesn't exist, that
> won't work.
>
> For more details, type `?open` at the Julia prompt.
>
> Patrick
>