Welcome, Guest. Please login or register.

Login with username, password and session length
Pages: [1]   Go Down
Print
Author Topic: open() and readline()  (Read 1476 times)
0 Members and 1 Guest are viewing this topic.
rkreiss
Member

Posts: 7


View Profile
« 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?

Logged

Richard Kreiss
GCC Consulting
email: rkreiss@gccconsulting.net
kenbrody
Administrator

Posts: 82


View Profile
« 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.)
Logged

Kenneth Brody
aka "Mr. filePro"  :-)
Pages: [1]   Go Up
Print
Jump to:  

Valid XHTML 1.0! Powered by SMF 1.1.15 | SMF © 2011, Simple Machines | Massive Blue Theme By Cadosoas Valid CSS!