Forex
Google
New signals service!

Go Back   Forex Trading > Metatrader Training > Metatrader 4 mql 4 - Development course > Questions


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-10-2006, 06: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!
Reply With Quote
  #2 (permalink)  
Old 07-11-2006, 03:47 AM
cockeyedcowboy's Avatar
Senior Member
 
Join Date: Nov 2005
Posts: 267
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!
Reply With Quote
  #3 (permalink)  
Old 07-11-2006, 06: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!
Reply With Quote
  #4 (permalink)  
Old 07-11-2006, 06:51 AM
lowphat's Avatar
Senior Member
 
Join Date: Sep 2005
Posts: 199
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!
Reply With Quote
  #5 (permalink)  
Old 07-11-2006, 01: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!
Reply With Quote
  #6 (permalink)  
Old 07-11-2006, 02:58 PM
lowphat's Avatar
Senior Member
 
Join Date: Sep 2005
Posts: 199
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, 66 views)

Last edited by lowphat; 07-11-2006 at 03:19 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 07-11-2006, 08: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!
Reply With Quote
Reply

Bookmarks

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 On
Forum Jump

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


All times are GMT. The time now is 06:33 PM.



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