Reading in files as int/float array or one String/char[] ( OpenGL Data )
Kagamin
spam at here.lot
Mon Dec 12 05:19:31 PST 2011
> 2.) I am reading in Vertex Data from a file. It holds only
> floats, e.g.:
> -38.3887 97.7612 -10.5231 -38.3572 98.8543 -10.5064 ...
> There is no metadata in the file giving information about the
> count of values.
> 3.) When reading a file line by line it would be nice to have
> the count of Lines of the file ( numLines )
If each line takes at least 25 bytes, you can divide file size by
25 - this will be an estimation of number of lines.
More information about the Digitalmars-d-learn
mailing list