ken bohnenkamp
29th January 2003, 23:05
I am opening and then reading a flat ascii text file from a unix directory using the following code:

file.id = seq.open("/fert2/ken/seq/mntimp.txt","r")
while not seq.eof(file.id)
do the following

This works fine, but I would like to read the ascii file from either my local C: drive or a mapped network drive. I tried the code below but that doesn't work

file.id = seq.open("c:/ken/mntimp.txt","r") |open import file

Does anyone know the syntax to do what I want or is it not possible. Any help would be appreciated.

NPRao
29th January 2003, 23:27
Ken,

the seq.open() function is used for the server end file handling.

For a client end file handling functions refer to - seq.open.local() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_client_file_access_seq_open_local)

ken bohnenkamp
30th January 2003, 16:01
When I use seq.open.local() and compile, I get an invalid reference. I notice that this function is in the library function ttdllbw, but I cant seem to add this as a library function reference in my script. What am I doing wrong, why do I not have access to the function seq.open.local.

Juergen
30th January 2003, 17:10
Hi Ken,

add the lines below to the declaration section

#pragma used dll ottdlldisplay
#pragma used dll ottdllbw

Juergen