AnuKass
14th June 2018, 12:56
hii..i'm new foe LN programming ...
is there any possible for reading a entire file with in single line from clien machine.?????
i did use while loop for reading entire file but it does not work ...it read again and again same record ..


seq.read.local(record,size,fp)
while len(strip$(record)) > 0
seq.write.local(record,size,fp1)
record=""
seq.read.local(record,size,fp)
endwhile

any thing wrong in this ??:(:confused:

mark_h
14th June 2018, 16:27
I always had issues reading from the client(that was 15-20 years ago) so what I always did, and still do, is use server2client to move the file to the server and read it from there. That always worked best for me.

hklett
14th June 2018, 22:38
if you are at end of the file, the buffer will left unchanged.
Your loop have to be
while seq.read.local(record,size,fp) = 0
...
endwile

AnuKass
18th June 2018, 09:14
Thank you ..to all ..
i use client2server method it's work perfectly ..

klesch
19th June 2018, 15:16
Please, have in mind that client2server will not work in LN UI.