Re: Open command in wxEuphoria

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi

fn = open(file, "r"), is returning -1 for fn (hence the bad file number - its
an error indicator

This means open() can't find the file

this means that the file sequence being passed to open_file is nor correct

put a puts(1, file) in the, at the beginning of open_file(), see whats being
passed to it.

Chris



When I do that, it stops me before the file_selector comes up with a new 
message

variable file has not been assigned a value.


I took a look in the .err file and this is what it told me in a nutshell...

file = {67'C',58':',92'\',68'D',111'o',99'c',117'u',109'm',101'e',110'n',
116't',115's',32' ',97'a',110'n',100'd',32' ',...and so on.
It's trying to give the file path by the looks of it. (C:\Documents and...)
in = <no value>
fn = -1

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu