Jump to content
UBot Underground

I keep getting an extra blank line when I read and save off lists


Recommended Posts

I am reading a text file that contains

 

url

url

url

 

and adding it to a list.

 

In the same command I am adding another list in there too, this contains the following.

 

url1

url2

url3

 

And I am then saving off the list to a file.

 

 

The problem is that now matter what I do, I cannot get the list to save without putting a space between the urls.

 

 

EG:

 

If the file in the read file part of list creation is like this,

 

url

url

url

 

then the final outputted list will come back like this.

 

 

url

url

url

 

url1

 

url2

 

url3

 

i have tried everything to remove the space.

 

If I use NEW LINE in the add list part , this does not work.

 

If I leave out the NEW LINE i get the following.

 

url

url

urlurl1

url2

url3

 

Nearly there, with this but not quite.

 

I'm pulling my hair out.

 

Ninjaman.

Link to post
Share on other sites

I am reading a text file that contains

 

url

url

url

 

and adding it to a list.

 

In the same command I am adding another list in there too, this contains the following.

 

url1

url2

url3

 

And I am then saving off the list to a file.

 

 

The problem is that now matter what I do, I cannot get the list to save without putting a space between the urls.

 

 

EG:

 

If the file in the read file part of list creation is like this,

 

url

url

url

 

then the final outputted list will come back like this.

 

 

url

url

url

 

url1

 

url2

 

url3

 

i have tried everything to remove the space.

 

If I use NEW LINE in the add list part , this does not work.

 

If I leave out the NEW LINE i get the following.

 

url

url

urlurl1

url2

url3

 

Nearly there, with this but not quite.

 

I'm pulling my hair out.

 

Ninjaman.

 

Hi - if you can pass a copy of your bot just showing this step then we will be able to tweak it for you and then advise

Link to post
Share on other sites

Here is the current iteration.

 

Which will give me

 

url

url

urlurl1

 

Hi - im more of a visual and get stuck in person - hence using ubot :-) - so if you could send over your bot - you dont need to send over everything - just the part in question so that I can try and work with it

Link to post
Share on other sites

Hi - im more of a visual and get stuck in person - hence using ubot :-) - so if you could send over your bot - you dont need to send over everything - just the part in question so that I can try and work with it

 

bots too big, and I could only send over all of it as it calls data from a previously completed script. Maybe someone else can help

Link to post
Share on other sites

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.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...