Here is your code in X++
asciiIO fileIN;
container inputCont;
str strPosition;
fileIN = new asciiIO("C:\\Documents and
Settings\\jnsalcedo.DESARROLLO.001\\Escritorio\\TRANSBS.txt", 'R');
while(fileIN.status() == IO_Status::OK)
{
inputCont = fileIN.read(); //IO file reads will alwways drop into
a container,
// if the lines is not delimeted by a
comma then the whole string should
//be in the fist spot in the container
//the next line assumes dealing with a non-delimeted fixed length
string
strPosition = subStr(conpeek(inputCont,1), 1, 10);
box::info(strPosition);
}
Go to the AOT\System Documentation\Classes\ Review IO, AsciiIO, and
CommaIO
G'Luck
-Preston
_____
From: hilda cabrejos [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 10, 2005 4:05 PM
To: [email protected]
Subject: [development-axapta] How import a text file into AXAPTA
Hello everybody
I would like to know how to read a text file into AXAPTA.
My users receive about 5 Bank Account Statements every month (very large)
and we would like to insert in a temporal table these movements and evaluate
them, to make easier the reconciliation process.
We need the process to be user easy, so the idea was to use import but the
files do not have separators (is a text file), remember that each bank has a
different format. In the import the conversion tab assumes that the file is
separated, and I think the Import works if the file is separated.
So do I have to make a job?
In C# this code reads the file
System.IO.StreamReader objReader=System.IO.File.OpenText(@"C:\Documents and
Settings\jnsalcedo.DESARROLLO.001\Escritorio\TRANSBS.txt");
string strLinea=objReader.ReadLine();
string strPosicion=strLinea.Substring(1,10);
MessageBox.Show(this,strPosicion);
Thanks in advance for any help
Hilda Cabrejos
---------------------------------
Do you Yahoo!?
Yahoo! Search presents - Jib Jab's 'Second Term'
[Non-text portions of this message have been removed]
Yahoo! Groups Sponsor
ADVERTISEMENT
<http://us.ard.yahoo.com/SIG=129pi7e3u/M=298184.6018725.7038619.3001176/D=gr
oups/S=1705006764:HM/EXP=1108156448/A=2532114/R=2/SIG=12kqtg1td/*http:/clk.a
tdmt.com/NFX/go/yhxxxnfx0020000014nfx/direct/01/&time=1108070048132023>
<http://view.atdmt.com/NFX/view/yhxxxnfx0020000014nfx/direct/01/&time=110807
0048132023>
<http://us.adserver.yahoo.com/l?M=298184.6018725.7038619.3001176/D=groups/S=
:HM/A=2532114/rand=348405857>
_____
Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
* Your use of Yahoo! Groups is subject to the Yahoo!
<http://docs.yahoo.com/info/terms/> Terms of Service.
[Non-text portions of this message have been removed]
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

