Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Phillip Davies
  Where is Phillip Davies?
 TRURO
 United Kingdom
 Phillip Davies
 To: Cetin Basoz
  Where is Cetin Basoz?
 Izmir
 Turkey
 Cetin Basoz
 Tags
Subject: RE: CSV file read
Thread ID: 233900 Message ID: 233908 # Views: 24 # Ratings: 0
Version: Visual FoxPro 9 Category: Projects and Design
Date: Tuesday, July 07, 2009 11:13:29 PM         
   


> >
> >
> >
> > Thanks for that
> >
> > ok I will try fgets(), but how to get record pointer to last line is my problem
> > not sure how to do this
> > i can move to end of file, but not start of last line to read in (n) bytes for example
> > Phillipe
>
> Probably I wasn't clear enough. What I suggest is other two methods. You might however do with lowlevel too. Simply create a loop and fgets(). Last fgets() is the last one. You may directly
> fseek( m.lnHandle, 8192+1, 2)
> and start looping from there. If there is a chance that your lines might be over 8192 bytes than use fread(). Again fseek() from eof but this time 65535.
>
> Anyway what would you do with these "lines"? Probably you need to prefer 2nd method - append from. It is almost always the best CSV parser.
>
> Cetin Basoz
>
> .Net has got better.Think about moving - check my blog:
> Blog (main)
> Blog (mirror)





OK, I will go down Appe from route
Many Thanks
Phillipe



COMPLETE THREAD
CSV file read Posted by Phillip Davies @ 7/7/2009 8:51:53 PM
RE: CSV file read Posted by Cetin Basoz @ 7/7/2009 9:28:52 PM
RE: CSV file read Posted by Phillip Davies @ 7/7/2009 9:59:12 PM
RE: CSV file read Posted by Cetin Basoz @ 7/7/2009 10:28:30 PM
RE: CSV file read Posted by Phillip Davies @ 7/7/2009 11:13:29 PM