RandomAccessFile.readLine() has carriage return
Posted on 1998-10-22
i am using RandomAccessFile.readLine(); to read from a text file. each string it reads has a Carriage Return (0d hex) as the last character.
to get rid of it, i copy all but the last chararcter into new string:
tempString = file.readLine();
imageFile[i] = tempString.substring (0, tempString.length() - 1);
this isn't real pretty.
is there a better way to get what i want?