Results 1 to 2 of 2
- 02-13-2011, 03:34 PM #1
Member
- Join Date
- Feb 2011
- Posts
- 22
- Rep Power
- 0
How to read file line by line with fixed number of characters
Hi all,
I want to read line by line with fixed number of characters like
file contains
" lhjugtryyr
ghjjkklyu gftytjuujtyyuyy
rtriuyiiuyjv yhtuyiu yyuyiu fghtryyiukigdfsnmvv mrtkjtrk
freytuyi
hfdgruiuouoiujjvjb rot uyoth ertewpoyu iuoreworu 9yo
rertryuyuiy rewttruityouj eryotruioj tettryuyu
ryrutyiu eyruti ytyutiui tryuitye
wqretyrt
ewerry
erewtyruti ytrryui uyui6ryyrurbyuyiey"
in this i want to read with 10 character at a time, if the 10th character is the end of line then i want to take total line
if the 10th character is in between the line, i want to skip the cuurent line and it has to take up to the previous line ...........
conditions
1) it has to take total line otherwise it has to leave ........
2) with fixed characters ..
- 02-13-2011, 04:09 PM #2
Member
- Join Date
- Feb 2011
- Posts
- 4
- Rep Power
- 0
Similar Threads
-
How to read a fixed number of bytes in a DataInputStream
By Michailangelo in forum NetworkingReplies: 4Last Post: 06-29-2010, 03:13 AM -
readline() doesnt read whole line, are there another terminating characters ?
By fexadyn in forum NetworkingReplies: 1Last Post: 10-08-2009, 05:45 PM -
Need to read an .ini and .abook file line by line (both files contain texts)
By ollyworks in forum Java AppletsReplies: 4Last Post: 09-10-2009, 11:18 AM -
Log4j not printing out file and line number
By devin in forum Java ServletReplies: 2Last Post: 03-05-2009, 04:16 PM -
read the file from different line number
By vaskarbasak in forum Advanced JavaReplies: 3Last Post: 06-02-2008, 02:31 PM
Bookmarks