searchengine/util/cpixtools/src/cpixfstools.cpp
changeset 23 d4d56f5e7c55
parent 8 6547bf8ca13a
equal deleted inserted replaced
20:556534771396 23:d4d56f5e7c55
   411    	{
   411    	{
   412 		std::ostringstream buf; 
   412 		std::ostringstream buf; 
   413     	while (!feof(file))
   413     	while (!feof(file))
   414     	{
   414     	{
   415     		int c = fgetc(file);
   415     		int c = fgetc(file);
       
   416             if (c == '\r') {
       
   417                 c = fgetc(file); 
       
   418                 if (c != '\n'){
       
   419                     buf<<'\r'; 
       
   420                 }
       
   421             }
   416     		if (c == EOF || c == '\n') {
   422     		if (c == EOF || c == '\n') {
   417 				break;
   423 				break;
   418     		}
   424     		}
   419     		buf<<(char)c; 
   425     		buf<<(char)c; 
   420     	}
   426     	}