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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.