This site uses cookies for analytics, personalized content and ads. By continuing to browse this site, you agree to this use. Learn more
Microsoft Logo
Gray Pipe
Developer Network Developer Network Developer
Sign in

Subscriber portal

Get tools
  • Downloads
    • Visual Studio
    • SDKs
    • Trial software
      • Free downloads
      • Office resources
      • SharePoint Server 2013 resources
      • SQL Server 2014 Express resources
      • Windows Server 2012 resources
  • Programs
    • Subscriptions
      • Overview
      • Administrators
    • Students
      • Microsoft Imagine
      • Microsoft Student Partners
    • ISV
    • Startups
    • Events
  • Community
    • Magazine
    • Forums
    • Blogs
    • Channel 9
  • Documentation
    • APIs and reference
    • Dev centers
    • Samples
    • Retired content
search clear
We’re sorry. The content you requested has been removed. You’ll be auto redirected in 1 second.
Technical Reference C/SIDE Reference Guide C/AL Functions
C/AL Functions File Data Type
File Data Type
File Data Type
Functions Not Supported by Microsoft Dynamics NAV Web Client
Automation Data Type
BLOB Data Type
Boolean Data Type
Byte Data Type
Char Data Type
Codeunit Data Type
Database
DateFormula Data Type
Dates and Times
Debugger
Dialog Data Type
FieldRef Data Type
File Data Type
CLOSE
COPY
CREATE
CREATEINSTREAM
CREATEOUTSTREAM
CREATETEMPFILE
DOWNLOAD
DOWNLOADFROMSTREAM
ERASE
EXISTS
GETSTAMP
LEN
NAME
OPEN
POS
READ
RENAME
SEEK
SETSTAMP
TEXTMODE
TRUNC
UPLOAD
UPLOADINTOSTREAM
WRITE
WRITEMODE
GUID Data Type
InStream and OutStream Data Types
KeyRef Data Type
Numbers
OCX Data Type
Option Data Type
Page Data Type
Query Data Type
Record Data Type
RecordID Data Type
RecordRef Data Type
Report Data Type
Sessions
Strings
System
Test Pages
TableFilter Data Type
Variant Data Type
XMLport Data Type
TOC
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.
This documentation is archived and is not being maintained.

File Data Type

Microsoft Dynamics NAV 2015
Other Versions
  • Microsoft Dynamics NAV 2016
  • Microsoft Dynamics NAV 2013 R2
  • Microsoft Dynamics NAV 2013
  • Microsoft Dynamics Nav 2009

The File data type gives access to files. Files can be opened in text or binary mode. For more information, see TEXTMODE Function (File).

You can read from or write to a file by creating input and output streams, respectively. To do so, use the CREATEINSTREAM Function (File) and CREATEOUTSTREAM Function (File). For more information, see InStream and OutStream Data Types.

See Also

Reference

CLOSE Function (File)
COPY Function (File)
CREATE Function (File)
CREATEINSTREAM Function (File)
CREATEOUTSTREAM Function (File)
CREATETEMPFILE Function (File)
DOWNLOAD Function (File)
DOWNLOADFROMSTREAM Function (File)
ERASE Function (File)
EXISTS Function (File)
GETSTAMP Function (File)
LEN Function (File)
NAME Function (File)
OPEN Function (File)
POS Function (File)
READ Function (File)
RENAME Function (File)
SEEK Function (File)
SETSTAMP Function (File)
TEXTMODE Function (File)
TRUNC Function (File)
UPLOAD Function (File)
UPLOADINTOSTREAM Function (File)
WRITE Function (File)
WRITEMODE Function (File)

Show:
Print Export (0)
Print Share
IN THIS ARTICLE
    Is this page helpful?
    Additional feedback?
    1500 characters remaining
    Thank you! We appreciate your feedback.

    Dev centers

    • Windows
    • Office
    • Visual Studio
    • Microsoft Azure
    • More...

    Learning resources

    • Microsoft Virtual Academy
    • Channel 9
    • MSDN Magazine

    Community

    • Forums
    • Blogs
    • Codeplex

    Support

    • Self support

    Programs

    • BizSpark (for startups)
    • Microsoft Imagine (for students)
    United States (English)
    • Newsletter
    • Privacy & cookies
    • Terms of use
    • Trademarks
    logo © 2017 Microsoft
    © 2017 Microsoft