www.digitalmars.com         C & C++   DMDScript  

D - splitlines

I'm a bit confused about the behavior of split.  I have this code

void main() {

 //Validator val = new Validator();

 byte [] wholeFile = file.read("C:\\temp");
 char [] [] lines = file.splitlines((char[])wholeFile);

 for (int i = 0;i < lines.length;i++) {
  puts((char[])lines[i]);
 }

 //val.Validate(lines,seperator);
}
Jul 20 2003