G
G
GRAMAZEKA6662015-10-25 20:43:25
Python
GRAMAZEKA666, 2015-10-25 20:43:25

Python: How to extract information from one text file and paste it into another?

There is a text file 1.txt https://dropmefiles.com/X9ofc and from it you need to make this 2.txt https://dropmefiles.com/xnNlu
You need to pull out information from here (1.txt) and structure it in this way. Just where the value of Lat is in one column, and where is Lon in another column. and throw this info into a new text file - to get this.
Long Lat
39.55577100 42.25142500
42.59824700 42.64250200
39.97199200 40.77315900
42.95417700
41.16786400
I am a beginner programmer. Now I'm trying to do this trifling task (it would seem). Came only to copy the data from one text dock and paste them into another. How to check the elements of a single .txt document and extract information on the condition of TRU is a mystery to me. Probably it is necessary to somehow convert this text document into a list and then do a check, if so, I don’t know how to do it.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question