How to findout the number of lines in a Text file using TextBuffer in X++ Ax 2012 and D365
internal final class RunnableClass1
{
/// <summary>
/// Class entry point. The system will call this method when a designated menu
/// is selected or when execution starts and this class is set as the startup class.
/// </summary>
/// <param name = "_args">The specified arguments.</param>
public static void main(Args _args)
{
TextBuffer tb;
tb = new TextBuffer();
tb.fromFile('C:\\Users\\How to write Dynamic query in x++.txt');
info(strfmt("%1",tb.numLines()));
}
}
Comments
Post a Comment