using file_open command
shanem
Posts: 28
Hi,
Just wondering if anybody has ever used the file_open command to open files for reading and/or writing? Im trying to use it at the moment to open a web page but not having much success. Has anybody any tips on what to do? I have done this before using different languages and it has always been fairly straightforward. I'm pretty new to this language, maybe there is something I have missed? This is what I have tried:
define_constant
char filePath[50] = 'http://www.******.ie' //file to open
integer ioFlag = 1 //read only
define_variable
slong handle
.
.
.
.
handle = file_open(filePath,ioFlag) //open the file
Problem is handle returns a -5 which means a disk I/O error.
I was talking to tech support about this and they're not really sure why its not working.
Just wondering if anybody has ever used the file_open command to open files for reading and/or writing? Im trying to use it at the moment to open a web page but not having much success. Has anybody any tips on what to do? I have done this before using different languages and it has always been fairly straightforward. I'm pretty new to this language, maybe there is something I have missed? This is what I have tried:
define_constant
char filePath[50] = 'http://www.******.ie' //file to open
integer ioFlag = 1 //read only
define_variable
slong handle
.
.
.
.
handle = file_open(filePath,ioFlag) //open the file
Problem is handle returns a -5 which means a disk I/O error.
I was talking to tech support about this and they're not really sure why its not working.
0
Comments
If you want some source code to mull over, say the word. If you can give more of a clue as to what you're doing, that would help...
- Chip
The file operation commands in NetLinx work with the "Disk On Chip" on the original masters, and the compact flash cards (formatted as a disk) on the NI's and ME-260s...
- Chip
Cheers,
Shane