C
C
Cat_CooLeR2013-11-13 19:38:55
Parsing
Cat_CooLeR, 2013-11-13 19:38:55

What is the best tool to parse xls, csv, txt files?

Hey! There is such a task: about 10 tables in various formats (prices), one of them needs to be compiled in xls format. Moreover, it should be possible to select prices and delete any positions if they match. The program should work on windows 7. Please tell me what is the best tool to use? There was an idea to write in php to perform such a task online, but it seems to me that this would not be very good. Suggested awk+.bat or .vbs scripts, but need an interface. Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artyom Rizhenkov, 2013-11-13
@Cat_CooLeR

You can do everything in PHP. CSV is essentially the same txt. You read the file into a variable (you can, for example, use the file () function, then there will immediately be an array of strings), and then iterate over this array of strings through foreach. Each string can also be split into fields: explode("field_separator", $string); As for xls, you can not bother and convert it to csv through Excel, for example, and then I have already written.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question