Jump to content

Combining texts contents?


bilis_money

Recommended Posts

Hi friends  :D

 

I have two contents the one looks like exactly below,

 

orange

banana

papaya

lemon

grapes

 

and the second text content is this one below,

 

coconut

 

now what i want is to add the second content into the first content in the very last row, so it will look like this below, consider also the original order,  i know this is easy i hope you help me again. :)

 

orange

banana

papaya

lemon

grapes

coconut

 

i just want to get the basic logic of the codes for this.

thanks again in advance.

 

 

 

Link to comment
Share on other sites

ok here is the entire scenario

 

the first content coming from a file.txt

 

now that file is composed of ip addresses list.

example:

192.168.1.1

192.168.1.2

192.168.1.3

192.168.1.4

192.168.1.5

 

what i'm going to do is to add the new ip address into this file.

which should look like this below, which ever is convenient to you.

192.168.1.1

192.168.1.2

192.168.1.3

192.168.1.4

192.168.1.5

192.168.1.6 //new ip added.

 

and must be save into file.txt again.

 

i hope that's clear. thanks again in advance.

 

 

Link to comment
Share on other sites

i'm tired of databases i want it simple, because it is simple  ;)

if thats simple then why do company use db and i guess it better to think which is  better in performance maybe after learning a little bit with your issue you will know what im trying to say

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.