![]() |
|
| Discuss Some advice to add records in ASCII Data files. at the Software within the Traderji.com - Discussion forum for Stocks Commodities & Forex; Is there any utility or can anybody develop a small script file or a program ... |
|
|||||||
| Notices |
| Software Charting, trading & technical analysis software, trading system development and backtesting. |
![]() |
|
|
Thread Tools |
| Sponsored Links |
|
#1
|
|||
|
|||
|
Is there any utility or can anybody develop a small script file or a program to
Append records from a master file to different child files. Better if this is Command line utility. (msdos prompt) All the files are in ASCII format and are in the same folder or directory format of <Master.TXT> file <DATE><SYMBOL><OPEN><LOW><HIGH><CLOSE><VOLUME> /(header) 09212006,SBIN,950.00,945.00,980.35,971.60,236758 /(Date MMDDYYYY) 09212006,SAIL,73.00,70.10,74.80,71.60,4236758 09212006,ACC,930.00,925.00,980.35,971.00,4236759 Format of different child files 1. sbin.TXT file <DATE><SYMBOL><OPEN><LOW><HIGH><CLOSE><VOLUME> 09192006,SBIN,940.00,935.85,966.50,962.00,135024 09202006,SBIN,963.00,940.80,963.50,949.00,235852 2. sail.txt file <DATE><SYMBOL><OPEN><LOW><HIGH><CLOSE><VOLUME> 09192006,SAIL,70.00,68.85,73.50,72.00,2135024 09202006,SAIL,73.00,64.80,79.50,71.00,235852 From the Master.txt file each record has to be appended in different txt files. The utility or the software should seek the name of the files which is matching the symbol field (omit the extention of the file .txt) of the master file only in the Folder or Directory specified. It should add the record of the child file at the end of the file. If any date is duplicated it should overwrite the record in the child text file. If there is no child file it should create a new child file with .txt as extention of the file. (ACC is in master but child file do not exists - Acc.txt file with one record should be created - in the folder name specified. The result of running the utility is as follows Master.txt file <DATE><SYMBOL><OPEN><LOW><HIGH><CLOSE><VOLUME> 1. sbin.txt file <DATE><SYMBOL><OPEN><LOW><HIGH><CLOSE><VOLUME> 09192006,SBIN,940.00,935.85,966.50,962.00,135024 09202006,SBIN,963.00,940.80,963.50,949.00,235852 09212006,SBIN,950.00,945.00,980.35,971.60,236758 2. sail.txt file <DATE><SYMBOL><OPEN><LOW><HIGH><CLOSE><VOLUME> 09192006,SAIL,70.00,68.85,73.50,72.00,2135024 09202006,SAIL,73.00,64.80,79.50,71.00,235852 09212006,SAIL,73.00,70.10,74.80,71.60,4236758 3. acc.txt file (new file is generated or created) <DATE><SYMBOL><OPEN><LOW><HIGH><CLOSE><VOLUME> 09212006,ACC,930.00,925.00,980.35,971.00,4236759 I believe that i have given the requirement quiet clearly - if any other clarifications, Please post. Thanks anil |
| Sponsored Links |
|
|
| Sponsored Links |
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads for: Some advice to add records in ASCII Data files.
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TradeStation 8.1 : ASCII 3rd Party Data | trader68 | Intraday | 7 | 22nd March 2007 01:06 AM |
| BSE NSE Groups in data files | rrdesai_goa | Data Feeds | 1 | 14th March 2007 01:13 PM |
| VIDEO FILES IN WMV FORMAT-CONVERT to vcd | rvlv | Software | 8 | 17th September 2006 10:44 PM |
| Advice on data provider - historical & real-time | Wai_Wai | Data Feeds | 0 | 28th January 2006 12:14 AM |
| Google files for $2.7-bn online IPO | Neal | Current Affairs | 0 | 30th April 2004 01:29 PM |
Indemnity, Disclaimer & Disclosure
Notice:
• By visiting Traderji.com you indicate your acceptance of our Forum
Rules Disclaimer & Disclosure and indemnify Traderji.com, its
associates and related parties of all claims howsoever resulting from
the usage of the forum.
• Disclaimer: Trading or investing in stocks & commodities
is a high risk activity. Any action you choose to take in the markets
is totally your own responsibility. Traderji.com will not be liable for
any, direct or indirect, consequential or incidental damages or loss arising out of the use of this information.
• Disclosure: The information in this forum is neither an offer to sell nor solicitation to buy any of the securities mentioned herein.
The writers may or may not be trading in the securities mentioned.
• All names or products mentioned are trademarks or registered trademarks of their respective owners.
General Content Disclaimer Notice:
In light of our policy of encouraging candid, open exchanges of views and the rapid distribution of information originating from many sources, Traderji.com cannot determine the accuracy of information that may be uploaded to the forum. Opinions, advice and all other information expressed by participants in discussions are those of the author. You rely on such information at your own risk. You are urged to seek professional advice for specific, individual situations and not rely solely on advice or opinions given in the discussions. Since Traderji.com is an open and free discussion forum, any comments made by members of this forum in their posts reflect their own views and not of the owner or administrator of Traderji.com. Thus the owner/administrator indemnify themselves of all claims whatsoever and will not be liable or responsible for any members comments/views in this forum Traderji.com. If you find any objectionable or offensive posts made by members of this forum which you would like to bring to our notice for removal then please Contact Us.