reader.close();
}
- return text.toString();
+ return text.toString().replaceAll("\n", System.getProperty("line.separator"));
}
/**
try
{
byte[] buffer = new byte[4096];
- int numBytes = 0;
+ int numBytes = 0;
while (0 < (numBytes = stream.read(buffer)))
{
text.append(new String(buffer, 0, numBytes));
}
}
- return text.toString();
+ return text.toString().replaceAll("\n", System.getProperty("line.separator"));
}
/**