AssignFile() problem?

From: Clay Shannon (clay.shannonNO_FAKE_HAM_IN_A_CAN_at_msbinfo.com)
Date: 12/31/03


Date: Wed, 31 Dec 2003 09:26:31 -0600

The code I'm working on has the following line:

AssignFile(txtFile, sFileName);

txtFile is a TextFile type and sFileName is a string. At this point,
sFileName contains a valid value ('C:\whatever\whatever.txt'). After the
call to AssignFile() above, if I evaluate txtFile in the Watch window, it
has no value. Is this normal, or should it be the same value as sFileName?
The subsequent call to Reset(txtFile) throws an exception...("File not
Found")

-- 
Clay Shannon


Relevant Pages

  • Re: AssignFile() problem?
    ... > txtFile is a TextFile type and sFileName is a string. ... a field in the internal file record structure. ...
    (borland.public.delphi.language.objectpascal)
  • Re: Filename variable
    ... Dave Peterson wrote: ... 'Dim FSO As Scripting.FileSystemObject ... Dim strFileName As String ... sFileName + 1), 1) ...
    (microsoft.public.excel.programming)
  • Re: Filename variable
    ... 'Dim FSO As Scripting.FileSystemObject ... Dim strFileName As String ... sFileName + 1), 1) ... Dim hyplink As String ...
    (microsoft.public.excel.programming)
  • multi-threaded app/ using lock
    ... I am using multiple child threads per main thread to download files. ... public delegate string ThreadFinishedCallback; ... sFileName = GetNextFileName; ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Filename variable
    ... Dim strhyplink As String ... Dim strFileName As String ... sFileName + 1), 1) ... Dim hyplink As String ...
    (microsoft.public.excel.programming)