hello all
is there available code to remove line numbers in front of each line
of a text file
thank you
denny
hello all
is there available code to remove line numbers in front of each line
of a text file
thank you
denny
Scanner scanner = new Scanner(myFileWithLineNumbers);
while(scanner.hasNextLine()){
String line = scanner.nextLine();
line.substring(1, line.length());
}
This is one such small snippet of code.
Assuming you have single digit numbers. There will be variations when you try to add this in your code fully. May be your line number has a "." at its end which you can use to delimit and separate.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.