reading specific characters from a text file in java -


before posted question, searching on idea, of answers not clear me.

here question: if have file contain contains following string :

45bbhbbbh strewr ggterewef frerreweffsf fs  w weerer twr wr  

how can read string character character ?

i want first string stored in variable on variable , next in example:

a = 4   b = 5  

after that, want read rest of string logic.

i want split 6 strings , store them in form data structure

bbhbbb > index 0  bh str > index 1 ( space )  

and on

use char[] store values instead of a= 4 be

yourchararray[0] =4; 

if want split string @ spaces loop (str being string)

while(str.indexof(" ") != -1) {  // substring code out individually using str.indexof(" "); } 

hope helps


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -