473,503 Members | 10,046 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I need to split an inf with some specified values.

1 New Member
Hi,

I need to splt an inf with some specified values.But the inf have sections with same key with multiple values .
For eg:

[Sample1]
"test1"=aaa,bbb
"test1"=aaa,ccc
"test2"=ddd,hjh

So i need to split the inf by specifying the values like bbb and ccc.
SO the expected result should be

[Sample1]
"test1"=aaa,bbb
"test1"=aaa,ccc


right now i am doing

targetinf.set_value(devInfo[3], "\"" + devInfo[1] + "\"", value ) for adding the key value in [Sample1] section


and devInfo[3] willhave the value [Sample1]
devInfo[1] will have the value "test1"
and value= aaa,bbb

But the issue is the second time it is trying to add

"test1"=aaa,bbb got replaced with "test1"=aaa,ccc.

I need both the values inside that section.


Can anyone please help me to dig out this problem?
Sep 7 '11 #1
1 1401
bvdet
2,851 Recognized Expert Moderator Specialist
What is an "inf"?

"test1"=aaa,bbb is not a valid Python expression. You cannot make an assignment to a literal.
Sep 7 '11 #2

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

Similar topics

5
6737
by: Golf Nut | last post by:
I am finding that altering and affecting values in elements in multidimensional arrays is a huge pain in the ass. I cannot seem to find a consistent way to assign values to arrays. Foreach would...
2
1382
by: Piers Chivers | last post by:
Hi, I have XML like <SomeElement> <Value>5</Value> <Value>3</Value> <Value>7</Value> </SomeElement> I want to define the schema to say that the <Value>s must contain at least
1
1474
by: srikanth | last post by:
hi, I have one file it filled with some values in rows/colums. some times, some variables (in a particular row& column) may not be filled. depending on the kind its filled i will go for...
3
24788
by: Elezar Simeon Papo | last post by:
Hello All, I have a tab separated input file (data.txt) in text format - the file looks like this SCHOOL DEPART1 DEPART2 DEPART3 Harvard Economics Mathematics Physics...
8
1553
by: ianaré | last post by:
Hey all, if i use a os.walk() to append files to a list like so... files = root = self.path.GetValue() # wx.TextCtrl input filter = self.fileType.GetValue().lower() # wx.TextCtrl input...
7
26326
by: Andrew Tatum | last post by:
Alright, so I have this problem. I want to make it easy for me and others to be able to run a query and easily choose whether we want Merchants or NonMerchants. Previously, we would have to comment...
7
1266
by: vbatnight | last post by:
Ok...I'm hoping someone has a simple solution for this problem. I need to find the value between two other values. For Instance: the 44 quick brown foxes jumped over 33...
4
2218
by: Leo jay | last post by:
dear all, i know i can use std::find to find specified value in an iterator range, i'd like to know is there any way to find the first value that not equals to the specified value? just like...
4
2451
by: MyWaterloo | last post by:
Hey all, I don't know where to go with this Excel question so I thought I would come here. You all have always been able to answer/help me with all my Access questions. I know this is not...
0
7095
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
7294
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
7361
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...
0
7470
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...
1
5026
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
4693
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
3183
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
3173
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1523
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 ...

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.