SaveToFile() problem

2008-10-20
2013-05-21
  • 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".

    e.g.
    - 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.