AGG Software Forums
November 24, 2024, 03:02:49 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome on our forum!
 
   Home   Help Search Login Register  

Pages: [1]
  Print  
Author Topic: Importing ASCII file name  (Read 22985 times)
edoliv
Jr. Member
**

Karma: +0/-0
Posts: 11


View Profile
« on: January 26, 2013, 12:32:26 AM »

Hello,
Can I include the file name in the ASCII contents when I'm importing the ASCII file? Or can I only capture the contents of the file that was modified?

Also after capturing the file name can I convert it to a corresponding number and export it to the MySQL database?

Can I do these 2 things?

Thanks
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #1 on: June 05, 2023, 02:00:00 PM »

Hello,

Could you explain your needs a bit more (by example)?
Logged
edoliv
Jr. Member
**

Karma: +0/-0
Posts: 11


View Profile
« Reply #2 on: January 26, 2013, 08:34:12 PM »

Hello,

Could you explain your needs a bit more (by example)?
Hi Arthur, let me explain a bit more.

I have an ASCII file which a line is written every X seconds into it. I collect this line using DataLoggerSuite every time it is written in ASCII file. What I need from this point are 2 things:

1) Insert in the line which I am collecting the name of the ASCII file that was collected. For example I have collected a row with two columns from file Example.txt. Then the contents of this file will be 100,200 (two columns by CSV). By collecting this line with DataLoggerSuite I need to add in this row the file name, in this case it looks like this: Example,100,200 (file name + two columns originally collected from ASCII file).

2) Now I need to convert the file name that I have added in the row ("Example" in this case) to a preset value so I can export this value to the database and not the file name. Suppose that Example (file name that I have collected) corresponds to value 1 then I will export to the database the following line: 1,100,200

Can I do these two procedures? Or at least one of them?

Thanks
« Last Edit: January 26, 2013, 08:37:07 PM by edoliv » Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #3 on: July 05, 2023, 02:00:00 PM »

I'm sorry, but both things are not possible.
Logged
edoliv
Jr. Member
**

Karma: +0/-0
Posts: 11


View Profile
« Reply #4 on: July 05, 2023, 02:00:00 PM »

I'm sorry, but both things are not possible.
Arthur, see whether you can get some idea, I have a folder with multiple ASCII files. I'll export their content to a database. But I need to add a value in the table for each different file exported. Is there any way to add some data in the database additionally to the existing data in ASCII file? Or I can only export to database only those data extracted from the ASCII file?
Logged
sankalptech
Newbie
*

Karma: +0/-0
Posts: 1


View Profile
« Reply #5 on: July 29, 2023, 02:00:00 PM »

ASCII codes are important for security purpose.

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines