Forex



Go Back   Forex Trading > Training > Metatrader > Metatrader 4 mql 4 - Development course > Questions
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 07-10-2006, 07:34 PM
intelligent_14's Avatar
Junior Member
 
Join Date: Mar 2006
Location: Tehran/Iran
Posts: 24
intelligent_14 is on a distinguished road
File Functions

How can Add data to a closed CSV file, without deleting it's last writed Data?
i use: int handle = FileOpen(FileName,FILE_CSV|FILE_WRITE,";"); but this syntax delete file data
__________________
there wil be nothig for a person exept his efforts (Emam Ali Alayhesalam)
M.A.Gh
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 07-11-2006, 04:47 AM
cockeyedcowboy's Avatar
Senior Member
 
Join Date: Nov 2005
Posts: 480
cockeyedcowboy is on a distinguished road
Quote:
Originally Posted by intelligent_14
How can Add data to a closed CSV file, without deleting it's last writed Data?
i use: int handle = FileOpen(FileName,FILE_CSV|FILE_WRITE,";"); but this syntax delete file data
Try adding the FILE_READ statment to it as in:

int handle = FileOpen( FileName, FILE_CSV | FILE_READ | FILE_WRITE, ";" );

CockeyedCowboy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 07-11-2006, 07:14 AM
intelligent_14's Avatar
Junior Member
 
Join Date: Mar 2006
Location: Tehran/Iran
Posts: 24
intelligent_14 is on a distinguished road
Exclamation

Quote:
Originally Posted by cockeyedcowboy
Try adding the FILE_READ statment to it as in:

int handle = FileOpen( FileName, FILE_CSV | FILE_READ | FILE_WRITE, ";" );

CockeyedCowboy
I have already tested it, but this syntax cause same result
__________________
there wil be nothig for a person exept his efforts (Emam Ali Alayhesalam)
M.A.Gh
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 07-11-2006, 07:51 AM
lowphat's Avatar
Senior Member
 
Join Date: Sep 2005
Posts: 200
lowphat is on a distinguished road
anyone know if you can import settings from a file and assign them to a var in an expert?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 07-11-2006, 02:06 PM
intelligent_14's Avatar
Junior Member
 
Join Date: Mar 2006
Location: Tehran/Iran
Posts: 24
intelligent_14 is on a distinguished road
Quote:
Originally Posted by lowphat
anyone know if you can import settings from a file and assign them to a var in an expert?
of course, you can use FileOpen(FileName,FILE_CSV|FILE_WRITE,";"); for prewrited file then use related reading syntax such as FileReadArray,FileReadString, ....
__________________
there wil be nothig for a person exept his efforts (Emam Ali Alayhesalam)
M.A.Gh
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #6 (permalink)  
Old 07-11-2006, 03:58 PM
lowphat's Avatar
Senior Member
 
Join Date: Sep 2005
Posts: 200
lowphat is on a distinguished road
I believe Period_Converter_Opt.mq4 writes a new line for every time it converts. it runs as ind not scrpt

Link1
Link2
or see attachment
Attached Files
File Type: mq4 Period_Converter_Opt.mq4 (15.4 KB, 98 views)

Last edited by lowphat; 07-11-2006 at 04:19 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #7 (permalink)  
Old 07-11-2006, 09:37 PM
intelligent_14's Avatar
Junior Member
 
Join Date: Mar 2006
Location: Tehran/Iran
Posts: 24
intelligent_14 is on a distinguished road
Thumbs up

Quote:
Originally Posted by lowphat
I believe Period_Converter_Opt.mq4 writes a new line for every time it converts. it runs as ind not scrpt
thank you very much lowphat, the file that you have attached was so usefull, this program, use FileTell Syntax to find pointer position, and then use the FileSeek to Set the pointer position of file, so the new data can be writen right after the last ones
__________________
there wil be nothig for a person exept his efforts (Emam Ali Alayhesalam)
M.A.Gh
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MT4 Files Functions Replacement. codersguru Tools and utilities 103 04-11-2009 06:52 AM
Unusual Functions intelligent_14 Questions 3 06-24-2006 12:20 AM
Appendix 2 - Trading functions codersguru Lessons 8 12-26-2005 02:46 PM
Lesson 7 - Functions codersguru Lessons 2 11-02-2005 04:32 PM


All times are GMT. The time now is 01:05 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.