Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Sign InSign Up

First independent community of traders

First independent community of traders Logo First independent community of traders Logo

First independent community of traders Navigation

  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • Buy Theme
  • Home
  • About Us
  • Blog
  • Contact Us
Home/ Questions/Q 3071
Next
In Process
mcigorli
mcigorli

mcigorli

  • 2 Questions
  • 1 Answer
  • 0 Best Answers
  • 20 Points
View Profile
  • 0
mcigorli
Asked: December 26, 20202020-12-26T13:09:59+00:00 2020-12-26T13:09:59+00:00In: Forex Expert Advisors

Working with a file

  • 0

hello everyone Help anyone with what they can.
How do I access a file for example that is located on ” c: est.txt”
Read it, change the 1st line and save and close? Using a simple mql5 expert Advisor.
I will be sooo grateful. 

Thanks!

  • 4 4 Answers
  • 0 Followers
  • 0
Answer
Share
  • Facebook

    4 Answers

    • Voted
    • Oldest
    • Recent
    1. billionerclub

      billionerclub

      • 0 Questions
      • 2 Answers
      • 0 Best Answers
      • 24 Points
      View Profile
      billionerclub
      2020-12-26T13:10:25+00:00Added an answer on December 26, 2020 at 1:10 pm

      mcigorli:

      Can I learn more ? What is it about ? I have read almost everything on this link. It States that working with third-party directories is precluded.

      Winapi functions are needed. You can also like this like the link

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    2. alexeynikolaev2

      alexeynikolaev2

      • 0 Questions
      • 1 Answer
      • 0 Best Answers
      • 22 Points
      View Profile
      alexeynikolaev2
      2020-12-26T13:10:15+00:00Added an answer on December 26, 2020 at 1:10 pm

      mcigorli:

      located on “c: est.txt”

      RTFM

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    3. mcigorli

      mcigorli

      • 2 Questions
      • 1 Answer
      • 0 Best Answers
      • 20 Points
      View Profile
      mcigorli
      2020-12-26T13:10:10+00:00Added an answer on December 26, 2020 at 1:10 pm

      If only.. 
      When using

      string TmpFileName(string Name,string Ext){
         string fn=Name+"."+Ext; / / formed name
      int n=0;
         while(FileIsExist(fn)) { // if the file exists
            n++;
            fn=Name+IntegerToString(n)+"."+Ext; / / adding a number to the name
         }
         return(fn);
      }

      Hits an error in: (although the script is clean)

      string TmpFileName(string Name,string Ext){

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    4. billionerclub

      billionerclub

      • 0 Questions
      • 2 Answers
      • 0 Best Answers
      • 24 Points
      View Profile
      billionerclub
      2020-12-26T13:10:05+00:00Added an answer on December 26, 2020 at 1:10 pm

      Here is a good article on working with files.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    Leave an answer

    Leave an answer
    Cancel reply

    Browse

    Sidebar

    Ask A Question

    Stats

    • Questions 521
    • Answers 2k
    • Posts 5
    • Comments 0
    • Best Answers 0
    • Users 706
    • Popular
    • Comments
    • Tags
    • forexcommunity

      Highlighting what’s important about questions & Answers on Discy Community!

      • 0 Comments
    • forexcommunity

      Introducing Keyboard Shortcuts, our first Labs feature

      • 0 Comments
    • forexcommunity

      Defining quality on Discy Engine — what a helpful answer ...

      • 0 Comments
    • forexcommunity

      Organizational and company accounts on Discy Engine the next step

      • 0 Comments
    • forexcommunity

      Hello world!

      • 0 Comments

    Related Questions

    • savinkins

      Getting data by the indicator from another indicator on a ...

      • 6 Answers
    • fresto

      Error opening the OptimOne file error: 5004

      • 2 Answers
    • asot650

      You need to write an Expert Advisor on the indicator

      • 4 Answers
    • miron_like

      Translation to mql5

      • 1 Answer
    • dynamiteman

      Script for commenting on an MT4 or MT5 trade

      • 2 Answers

    Users

    Brianacink

    Brianacink

    • 0 Questions
    • 0 Answers
    asot650

    asot650

    • 1 Question
    • 2 Answers
    investr777

    investr777

    • 1 Question
    • 0 Answers

    Footer

    First independent community of traders

    About

    An independent community of forex traders. This is where traders communicate. You can ask your questions and you will receive an answer to your question.
    • Terms of Use
    • Privacy Policy
    • Cookie Policy
    • Knowledge Base
    • Support

    © 2021 Forexcommunity.net. All Rights Reserved