Partilhar via


TextIo Class

Definition

The TextIo class provides functionality for reading and writing text files.

public ref class TextIo : Dynamics::AX::Application::CommaIo
[Microsoft.Dynamics.Ax.Xpp.KernelClass]
public class TextIo : Dynamics.AX.Application.CommaIo
[<Microsoft.Dynamics.Ax.Xpp.KernelClass>]
type TextIo = class
    inherit CommaIo
Public Class TextIo
Inherits CommaIo
Inheritance
Microsoft.Dynamics.AX.KernelInterop.ProxyBase
TextIo
Attributes

Remarks

TextIO replaces AsciiIO to provide support for non-ANSI code page file I/O. The TextIO constructor has an additional optional parameter to set the code page of the file. The TextIO.new method has an optional argument that specifies the code page of the file. The default value is UTF-16LE (the Microsoft Windows native Unicode representation). It is best to use this in most instances, especially if end-users might edit the file in a text editor outside Finance and Operations. For more information, see TextIo.new. When files are read, TextIO examines the first few bytes of the file for a byte-order mark (BOM) and automatically handles UTF-8, UTF-16LE, and UTF-16BE. If no BOM is found, the file is assumed to be in the ANSI Code Page (ACP) format.

Constructors

TextIo()
TextIo(IntPtr)
TextIo(String, String, Int32)
TextIo(String, String)

Fields

__k_TextIoId
kernelClass (Inherited from XppObjectBase)

Methods

__shouldCallNew(Type)
addXppProxyReference(Type, Object) (Inherited from XppObjectBase)
Call(String, Object[], Type[], Object[]) (Inherited from XppObjectBase)
cancelTimeOut(Int32) (Inherited from XppObjectBase)
createKernelClass(Object[], Type[], Object[]) (Inherited from XppObjectBase)
equal(XppObjectBase) (Inherited from XppObjectBase)
filePosition() (Inherited from CommaIo)
finalize()

Closes the file and, if data was written, flushes the file buffers to disk.

GetIntPtr() (Inherited from XppObjectBase)
GetKernelInstanceUniqueId() (Inherited from XppObjectBase)
getTimeOutTimerHandle() (Inherited from XppObjectBase)
getXppProxyReference(Type) (Inherited from XppObjectBase)
handle()
inFieldDelimiter()

Gets or sets the character that is used for the field delimiter of an input file represented by a TextIO object.

inFieldDelimiter(String)
inRecordDelimiter()

Gets or sets the character that is used for the record delimiter of an input file represented by a TextIO object.

inRecordDelimiter(String)
inRecordLength()

Gets or sets the record length for an input file.

inRecordLength(Int32)
IsManagedValid() (Inherited from XppObjectBase)
kernelhandle()
KernelInstanceDisposed() (Inherited from XppObjectBase)
MakeReflectionCall(String, Object[]) (Inherited from XppObjectBase)
newmethod() (Inherited from XppObjectBase)
newmethod(String, String, Int32)
newmethod(String, String)

Creates a new instance of the TextIO class.

notify() (Inherited from XppObjectBase)
notifyAll() (Inherited from XppObjectBase)
objectOnServer()
Obsolete.
(Inherited from XppObjectBase)
outFieldDelimiter()

Gets or sets the character that is used for the field delimiter of an output file represented by a TextIO object.

outFieldDelimiter(String)
outRecordDelimiter()

Gets or sets the character that is used for the record delimiter of an output file represented by a TextIO object.

outRecordDelimiter(String)
read()

Reads the next full record from a TextIO object.

setTimeOut(String, Int32, Boolean)
Obsolete.
(Inherited from XppObjectBase)
setTimeOut(String, Int32)
Obsolete.
(Inherited from XppObjectBase)
status()

Retrieves the status of the last operation performed on a TextIo object.

usageCount() (Inherited from XppObjectBase)
VerifyKernelClass() (Inherited from XppObjectBase)
wait() (Inherited from XppObjectBase)
write(Object[])

Writes data to a file represented by a TextIO object.

writeChar(Int32)

Writes a Unicode character to a file.

writeExp(Object[])

Writes the contents of a container to a file represented by a TextIO object.

writeRaw(String)

Reserved.

Xml() (Inherited from XppObjectBase)
Xml(Int32) (Inherited from XppObjectBase)

Applies to