LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 08-10-2006, 05:27 PM   #1
ancys
LQ Newbie
 
Registered: Jul 2006
Posts: 28

Rep: Reputation: 15
Delimiters in control file


hi all,

Is it possible to have different delimiter in control file(i.e for same test file first i can have # rlater ican change to . in the file )as delimiter

instead of hardcoding evry time is it possible to store delimiter config variable n replace it in control file

All ready the pathname/filename in control file is got thru a config var

help

Last edited by ancys; 08-10-2006 at 09:59 PM.
 
Old 08-11-2006, 11:40 AM   #2
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
this may or may not be what you are talking about, since you provided no code, specified no language and did not describe this 'control file'. but ill still say that in theory this should be easy to do..

Code:
#
thisisafield#thisisanother#andanother
thisisafield#thisisanother#andanother
thisisafield#thisisanother#andanother
...
or
Code:
.
thisisafield.andanother.andanother
thisisafield.andanother.andanother
thisisafield.andanother.andanother
...
just read the first char of the file in and say that is the delimiter, from there on out pass that char to the record reading functions to use a a delimiter
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
control the view of a file qrshat Programming 8 02-18-2006 02:24 PM
control the view of a file qrshat Programming 2 02-17-2006 09:17 AM
Parse --static string no delimiters DaFrEQ Programming 2 04-08-2005 02:06 PM
Looking for the file that control what processes are loaded! sjia Linux - Software 1 04-08-2004 12:21 AM
which file control su $PATH? zsutomato Linux - Newbie 3 08-15-2003 01:44 AM


All times are GMT -5. The time now is 02:34 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration