473,508 Members | 2,143 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

File Parsing thru Keywords

440 Contributor
Hi,

Which is best approach to read/parse the file when it has keywords defined in the file.
I have a file,which has around 130 Keywords defined.Some keywords has similar format and other have different format.Below or side of the keyword the respective data is defined.In this case whether it is right approach to read the file once and store the data based on the Keyword as key and the data as a list / tuple (Or) we can seek the file data based on the keyword ,whenever it is required.

Please suggest the approach

Thanks
PSB
Aug 27 '07 #1
3 1351
ghostdog74
511 Recognized Expert Contributor
Hi,

Which is best approach to read/parse the file when it has keywords defined in the file.
I have a file,which has around 130 Keywords defined.Some keywords has similar format and other have different format.Below or side of the keyword the respective data is defined.In this case whether it is right approach to read the file once and store the data based on the Keyword as key and the data as a list / tuple (Or) we can seek the file data based on the keyword ,whenever it is required.

Please suggest the approach

Thanks
PSB
i hate to say this, but you have been posting for a while. you should be able to come up with something already.
Aug 27 '07 #2
psbasha
440 Contributor
I understand ,but as you know File parsing is very difficult than file writing.The way we read the data and store in a variables matters,for any application or software development.So ,each developer has his own way of approach,so I am looking for a experts suggestion,who can guide me in the right direction.

Thanks
-PSB
Aug 28 '07 #3
bvdet
2,851 Recognized Expert Moderator Specialist
Hi,

Which is best approach to read/parse the file when it has keywords defined in the file.
I have a file,which has around 130 Keywords defined.Some keywords has similar format and other have different format.Below or side of the keyword the respective data is defined.In this case whether it is right approach to read the file once and store the data based on the Keyword as key and the data as a list / tuple (Or) we can seek the file data based on the keyword ,whenever it is required.

Please suggest the approach

Thanks
PSB
The most efficient access method would depend on how often the data file will be accessed I would think. My thought would be to read and parse the data one time, but if you occasionally need one or two bits of specific data, it may be better to read the file when required.
Aug 28 '07 #4

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

Similar topics

3
6519
by: keith | last post by:
I am trying to build a where clause for mysql based on different form inputs but php seems to have a problem with the following: $whrClause = "WHERE keywords LIKE '%$keywords%'" I thought with...
4
3808
by: Fuzzyman | last post by:
There have been a couple of config file 'systems' announced recently, that focus on building more powerful and complex configuration files. ConfigObj is a module to enable you to much more *simply*...
2
2166
by: Todd Moyer | last post by:
I would like to use Python to parse a *python-like* data description language. That is, it would have it's own keywords, but would have a syntax like Python. For instance: Ob1 ('A'): Ob2...
19
3985
by: ARK | last post by:
I am writing a search program in ASP(VBScript). The user can enter keywords and press submit. The user can separate the keywords by spaces and/or commas and key words may contain plain words,...
6
2009
by: Angelic Devil | last post by:
I'm building a file parser but I have a problem I'm not sure how to solve. The files this will parse have the potential to be huge (multiple GBs). There are distinct sections of the file that I...
2
4205
by: mahurshi | last post by:
I am trying to read a file full of numbers followed by spaces (and then do some cool stuff with it) My input file looks like this 1 0 1 0 1 0 1 1 1 0 0 1 1 0
5
5218
by: PulsarSL | last post by:
Hey everyone, What function can I use to grab a .csv file from a remote webserver for use in my PHP script. I want to do some parsing and statistical analysis on it (server side). What PHP...
3
1589
by: u473 | last post by:
I am requested to parse a file where some field values are transferred to new rows as follows : Existing file and field values : Code Field A Field B Field C 101 50 20...
13
1846
by: abcdefghijklmnop | last post by:
I have a "Questions" form that reads off of a table and contains a multi-value field called "Keywords". I already know that having a multi-value field is a horrible idea, however, I am patching up a...
0
7326
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
7385
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5053
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
4707
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
3195
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...
0
1558
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.