I have code that was written in c++ language. The part of code is:
fscanf(filename,"%ld%*[^\n]\n", x);
fscanf(filename,"%ld%*[^\n]\n", y);
fscanf(filename,"%lf%*[^\n]\n", z);
fscanf(filename,"%lf%*[^\n]\n", q);
fscanf(filename,"%lf%*[^\n]\n", w);
fscanf(filename,"%[^#]%*[^\n]\n", r);
I understand that this is the kind of split behavior in c++, by kind of data in the given file? If there is the way to do the same in c#? Or may be there is the way to implement such functionality but with other code and functions?