473,513 Members | 2,490 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Whats the easiest way to write and engine for importing files of common formats?

19 New Member
I am writing an application where data can be gathered from many different places and graphed against other data. However the data from all the different places is coming in different formats such as .csv, .txt and some others i can't recall right now.

So i am wondering what is the easiest way to allow my program to import the data supplied in these different formats?

Thanks Alex.
Dec 1 '09 #1
4 1131
Frinavale
9,735 Recognized Expert Moderator Expert
I would guess the best way to do this is to check the file extension that you are dealing with and implement functionality that imports the data depending on the file extension. I can't think of any other way to do this.

-Frinny
Dec 1 '09 #2
alex21
19 New Member
Yeah thats the problem though CSV stands for comma separated but it can also be tab separated and bar separated etc.

And the ones that come in .txt format are also usually separated by one of the above.

And some come with a header of some sort specifying a title and data where others do not. Some also specify column headers where others do not.

But my goal is to make my application be able to manipulate this data for its own use.

So how would i detect what method to use to read the data?
Dec 2 '09 #3
Frinavale
9,735 Recognized Expert Moderator Expert
In this case, I think you're going to have to figure out how each source is formatting their data and go from there.

If it is possible, I would recommend that you request that the data be sent in XML format so that the data being transferred is standardized. It doesn't have to be XML, you could use csv and text files but you have to make sure that they are formatted the same way (that's why I recommended XML).

-Frinny
Dec 2 '09 #4
alex21
19 New Member
Strange that most companies don't offer xml, sigh.

thanks
Dec 2 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

27
4884
by: Eric | last post by:
Assume that disk space is not an issue (the files will be small < 5k in general for the purpose of storing preferences) Assume that transportation to another OS may never occur. Are there...
0
1667
by: Altsoft Xml2PDF | last post by:
Xml2PDF formatting engine 2.1 November 17, 2004 Altsoft N.V. Altsoft N.V. is proud to announce the release of version 2.1 of its Xml2PDF formatting engine. The update includes: - improved...
5
3155
by: dixie | last post by:
If I sent a user an empty database container - dB with no tables and I needed them to import their tables into it and one of their tables was a hidden table with the prefix Usys, is there any way...
0
2063
by: dtsearch | last post by:
New release expands-through a .NET Spider API, to Linux, and to OpenOffice-dtSearch's ability to index over a terabyte of text in a single index, with indexed search time typically less than a...
2
3159
by: Snozz | last post by:
The short of it: If you needed to import a CSV file of a certain structure on a regular basis(say 32 csv files, each to one a table in 32 databases), what would be your first instinct on how to...
3
3334
by: mukeshsrivastav | last post by:
dear sir i want to move form excel to access. i have 5 excel file having same formats and fields.now i want to import all data in one access table. importing one file is easy .but importing and...
0
789
by: Buddy Home | last post by:
Hello, I'm trying to upload a file programatically and occasionally I get the following error message. Unable to write data to the transport connection: An established connection was aborted...
7
12240
by: Pete | last post by:
I need to import multiple tab delimited files for which I do not have the formats. All files have column headers in the the line. The files must be dynamic. The only common value is that the...
3
14032
by: Buddy Home | last post by:
Hello, I'm trying to upload a file programatically and occasionally I get the following error message. Unable to write data to the transport connection: An established connection was aborted...
0
7260
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7160
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7525
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5685
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5086
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4746
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3233
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
799
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.