Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Importing data from a text file into an SQLite database with Python
Post: RE: Importing data from a text file into an SQLite...

...and what would it look like with the creation of the database?
macieju1974 General Coding Help 7 4,159 Jun-29-2020, 08:32 PM
    Thread: Importing data from a text file into an SQLite database with Python
Post: RE: Importing data from a text file into an SQLite...

in my previous post, the guys showed me a nice way, but how to load it into a database? file = 'raport.txt' array = [] with open(file, 'r') as lines: for line in lines: newlines = line....
macieju1974 General Coding Help 7 4,159 Jun-29-2020, 07:42 PM
    Thread: Importing data from a text file into an SQLite database with Python
Post: RE: Importing data from a text file into an SQLite...

this text file is a reading from external sensors, some sensors are out of order, so it is "### RANGE". I would like to write a script in Python that will create a database from this file without "###...
macieju1974 General Coding Help 7 4,159 Jun-29-2020, 07:28 PM
    Thread: Importing data from a text file into an SQLite database with Python
Post: Importing data from a text file into an SQLite dat...

Hi, I have the following text file: ... here's a fragment Output:2020-05-22##18:00:00###RANGE ###RANGE ###RANGE ##201828##190182##96136##2 ##0 ###RANGE ###RANGE ##532387##644##313415 2020-05-22##1...
macieju1974 General Coding Help 7 4,159 Jun-29-2020, 06:24 PM
    Thread: create an array of each line of text
Post: RE: create an array of each line of text

items = [] file = open('raport.txt', 'r').read() for item in file.split('##'): if item != '#RANGE ': items.append(item.strip()) print(items)I receive the following... 0-05-23',...
macieju1974 General Coding Help 7 3,446 Jun-07-2020, 06:11 PM
    Thread: create an array of each line of text
Post: RE: create an array of each line of text

thank you for the answer, I must admit I am honestly a beginner if you could give a simple example, please
macieju1974 General Coding Help 7 3,446 Jun-07-2020, 05:35 PM
    Thread: create an array of each line of text
Post: create an array of each line of text

Hi, I have the following text file: ... here's a fragment I wrote a code in python that reads data from this file. file = open('raport.txt', 'r').read() lines = file.split('\n') for line in lines: ...
macieju1974 General Coding Help 7 3,446 Jun-07-2020, 05:05 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020