Author Topic: open() and readline()  (Read 1553 times)

0 Members and 1 Guest are viewing this topic.

rkreiss

  • Member
  • Posts: 7
    • View Profile
open() and readline()
« on: March 28, 2008, 11:04:52 AM »
used open() to create a file recno.txt with just a record # in it.

The file was created in \fptemp and was visable at the command prompt and with Windows Explorer.

Problem is when another app tried to read this file, it couldn't find it.

When I changed the name of the file to harry.txt, there was no problem in the file being read.

Why should this occur.  Same place, same data, different name.

Does open() have a problem opening a file whose name is \pftemp\recno.txt?

Is it seeing \r as something other then part of a file's name?

Richard Kreiss
GCC Consulting
email: rkreiss@gccconsulting.net

kenbrody

  • Administrator
  • Posts: 82
    • View Profile
Re: open() and readline()
« Reply #1 on: April 07, 2008, 04:22:38 PM »
Define "it couldn't find it".

There is no problem with "\r" in the pathname.

Also, there is no need to use backslashes, when normal slashes work just fine. (Though backslashes work as well, under Windows.)
Kenneth Brody
aka "Mr. filePro"  :-)