0

I have a file that contains the following line:

config101010000101010111000adaptorname1010000101010010101adaptordescription10101010100001111111ipaddress10111010000010000

I know how to read and write the whole line but couldn't figure out how to write it to the file as: (seperate those word characters from integer numbers by (:) and write each word to seperate line as in below)

config : 101010000101010111000 
adaptorname: 1010000101010010101
adaptordescription: 10101010100001111111
ipaddress: 10111010000010000
user3521035
  • 23
  • 1
  • 9
  • 2
    that really depends on how you loaded it and store it. – Creris May 04 '15 at 20:54
  • 2
    Please show your code to read and parse the input file. I am having trouble understanding how writing it in the requested format is not trivial after you read and parse. – drescherjm May 04 '15 at 20:58
  • assume that we have a string like "config101010000101010111000adaptorname1010000101010010101adaptordescription10101010100001111111ipaddress10111010000010000" i want to seprate the chars 'config' first then write the coming numbers after it then on new line i wanna write 'adaptorname' then upcpming numbers and so on. ( my could is so basic i used getline to parse it and write it the file so its of no use i have just started but couldnt understand as i am new to c++) – user3521035 May 04 '15 at 21:13
  • @user3521035 I do not think there was a problem understanding your question. However you still have not posted your c++ code to read the file so its hard to help. This is not a homework writing site, we can not just give you the answer. – drescherjm May 04 '15 at 21:23
  • Also I am not sure this code is a duplicate of the linked. That is until I see the code from the OP. – drescherjm May 04 '15 at 21:27

0 Answers0