Re: unbuffered file IO?



MikeJ <vettes_n_jets@xxxxxxxxxxxxx> wrote:
i ran many different files through it..and my orig post was
"work in progress..." and "not completed"...
your thoughts are welcome but i don't know where you are talking about 106
and where im reading contents into the array
since the array is a long[] and therefore strings can't be placed in it
i read into a buffer to find end of line and that could be anything
far as that 106 , the Endof Line Marker is "~" character , so Max Record
Length would Be 106
Since these are files that come in the form of Ansi EDI type files
that method you read was a generic find end of line method and build some
information

And that may be fine for *your* use of it, but you were recommending it
for others to use - and there's no indication from the OP that he's
looking at files which have the special sort of format you're
describing.

if the user of the class specified the end of line..the top (if) statement
is executed , else the constant (if) block below are executed

before you bash...you should read a lil....as i said work in progress....
but i do welcome comments

I'd just be wary of telling people that you're providing code which
will work for *their* case when it's still a work in progress for your
particular use

--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
.



Relevant Pages

  • Re: opening multiple files in fortran
    ... last format: r_hifreq10000.out ... array, outnu. ... - so each of my 10,000 output files would have 14,391 entries apiece). ... you are truly reading a large number of files, ...
    (comp.lang.fortran)
  • Re: Really Stuck, Please Help
    ... I am not sure how to construct an array. ... Reading Master Log", of the "Copreco Master Log" workbook. ... Dim sourceBook As String ...
    (microsoft.public.excel.programming)
  • Re: Problem with a script
    ... a loop there becomes impractical. ... You still have them as uniquely named array indexes... ... writing the code twice will only ... reading your entire code and parsing it in their head, ...
    (comp.lang.php)
  • Re: Problem with a script
    ... Okay, so variables have unique labels, that doesn't mean they still couldn't be handled in a loop. ... You still have them as uniquely named array indexes... ... I believe that for the new guy this code would be readable, and identifying problems should really not be any more difficult with this, plus I think that it actually might save some time to write the actual code from the beginnig, even though it's not at it's final stage, instead of first writing everything spread out, and then rewriting the same code again cleaned. ... If you expect a person to spend an hour reading your entire code and parsing it in their head, you wont get any help and have to solve the problem by yourself. ...
    (comp.lang.php)
  • Re: Reading Files Byte-For-Byte
    ... >> attempting to read the file into an array. ... to be slower due simply to the additional commands required to accomplish ... I think the misunderstanding came about due to your mentioning reading the ... of printable characters, you'll need to do something else if your file data falls ...
    (microsoft.public.vb.general.discussion)