SaveToFile() problem

  • Paulo Braga

    Paulo Braga - 2008-10-20

    SaveToFile() seems to have a bug.

    If the argument only contains one backslash, it verifies OK.
    However, just adding another backslash to the path results in "Error 2 malformed string".

    - SaveToFile("C:\filename.txt") validates OK
    - SaveToFile("C:\file\name.txt") gives the error

    • Paulo Braga

      Paulo Braga - 2008-10-20

      Problem solved.
      I did not imagine that path strings should also conform to the scape character convention.
      Changed each "\" to "\\" and the erratic behavior ceased to occur.


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks