internetreadfile newline read

  • Thread starter Thread starter marfi95
  • Start date Start date
M

marfi95

Is there a way to make the internetreadfile function read records that
are terminated by newlines instead of reading into a buffer. It would
make it much easier for me to process.

I suppose I could read the whole file and split into an arry, but how
do I split on a CRLF ?

Mark
 
A little more info might be helpful as to why.

I'm having read UNIX files from a C# program and check if a certain
pattern appears in the files. Once I find a record with the pattern, I
can quit looking at that file because I know I need to FTP it down for
the user. Some of these files are in the tens/hundreds of megs, so I
dont want to ftp it down unless I know I need to.

I need to present them with a list of the possible candidate files, so
I'm using findfirstfile/findnextfile to get the list of possible files,
then I need to look for this pattern in the file.

Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top