473,772 Members | 3,786 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Parse/modify file

Hi,

txt file.

list li*******@domai n.tld
parameter1 value
parameter2 value
parameter3 value
list li*******@domai n.tld
parameter1 value
parameter2 value
parameter3 value
list li*******@domai n.tld
parameter1 value
parameter2 value
parameter3 value

How to change value for parameter2 in listname2 or how to delete listname2
and all parameters for that list.

Regards,
Darko Bazulj
Feb 6 '07 #1
3 998
Darko Bazulj schreef:
Hi,

txt file.

list li*******@domai n.tld
parameter1 value
parameter2 value
parameter3 value
list li*******@domai n.tld
parameter1 value
parameter2 value
parameter3 value
list li*******@domai n.tld
parameter1 value
parameter2 value
parameter3 value

How to change value for parameter2 in listname2 or how to delete listname2
and all parameters for that list.

Regards,
Darko Bazulj

You'll need to open the file, parse the listname2 out and rewrite the file.
--
Rinze van Huizen
C-Services Holland b.v
Feb 6 '07 #2
"Darko Bazulj" <Da**********@d iscussions.micr osoft.comwrote in
news:uq******** ******@TK2MSFTN GP04.phx.gbl:
How to change value for parameter2 in listname2 or how to delete
listname2 and all parameters for that list.
I would read the file into memory and overwrite the old file.
Feb 6 '07 #3
"Spam Catcher" <sp**********@r ogers.comwrote in message
news:Xn******** *************** ***********@140 .99.99.130...
"Darko Bazulj" <Da**********@d iscussions.micr osoft.comwrote in
news:uq******** ******@TK2MSFTN GP04.phx.gbl:
>How to change value for parameter2 in listname2 or how to delete
listname2 and all parameters for that list.

I would read the file into memory and overwrite the old file.
Hi,

I thought something like that but I don't know how to achive that.
Can you give some example.

Also there is need to add/remove some parameter from the list.

Thanks for help.

Regards,
Darko Bazulj
Feb 7 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3623
by: Stuart Miller | last post by:
When using Java to read in an XML file, I am having problems getting the XML file to be parsed against the specified DTD. Background: I have an existing Java application that allows users to modify values in a database. To improve performance - we're looking to enable multiple record modification by using XML files. The user downloads the required
3
2234
by: IWP506 | last post by:
Hey, I have a lot of common things I want to be included on different pages (i.e. the page title, the header, some buttons and such, etc.). So I was thinking of putting things like "*PAGETITLE*" into my html documents, then having a parse.php file that would replace *PAGETITLE* with the title of the pages. So I would structure my links like
18
2237
by: DaveLessnau | last post by:
I'm trying to learn C on my own and, apparently, my brain went on vacation somewhere. I just can't figure out how to parse the following function call: "void fillDeck( Card * const wDeck, const char * wFace, const char * wSuit)" Card is aliased before that call with: "typedef struct card Card"
0
344
by: David T | last post by:
Try building the project first. VB.NET uses "codebehind", which means you have to compile the codebehind file (WebForm1.aspx.vb in this case) first. Regards, David >-----Original Message----- >I created an empty web project in VB.NET, and created a simple WebForm1.
8
1910
by: Brett Romero | last post by:
I get this error when I try to run my ASP.NET app on our server: Server Error in '/' Application. -------------------------------------------------------------------------------- Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
7
3729
by: akira | last post by:
Hello, I need to parse this XML file or XML stream . Is it possible to parse it with DOM reading each DataContainer one by one. <DataContainer> <name> </name> <birthDate> </birthDate> <personnalInfos> <personnalInfo_entries> </personnalnfo_entries> <personnalInfo_elem> </personnalnfo_elem>
5
3758
by: liming | last post by:
Hi all, I have to parse two text files on a weekly basis. Each range from 300kb to 1mb in total. Each text file has 5 columns (name,id, dollar, startdate,enddate), everytime, a) I need to parse each row, extract each column 2) check if the data already exisinst in the db between startdate and end date 3) if not, then insert them into the the database, else, modify the record with the new data.
14
7352
by: Rob Meade | last post by:
Hi all, I'm working on a project where there are just under 1300 course files, these are HTML files - my problem is that I need to do more with the content of these pages - and the thought of writing 1300 asp pages to deal with this doesn't thrill me. The HTML pages are provided by a training company. They seem to be "structured" to some degree, but I'm not sure how easy its going to be to parse the page.
2
1496
by: Tonino Greco | last post by:
Hi all, I wonder if someone on the list can offer a suggestion as to how I can parse a config file that has the form: group1 name1 name2 group2
6
3522
by: Richard | last post by:
Which way would you guys recommened to best parse a multiline file which contains two fields seperated by a tab. In this case its the linux/proc/filesystems file a sample of which I have included below: nodev usbfs ext3 nodev fuse vfat ntfs nodev binfmt_misc
0
9620
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9912
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8934
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7460
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6715
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.