Modification of content of a text file from Nav

Mrinmay
Member Posts: 74
hi Expart,
i want to know how to modify the content of a text file from Navision. let me explain bit more....suppose 1 text file is there in c drive in client system called "test.txt". In that text file only one name is there for example ' XYZ ABC'.
Now i want to change the name as 'XMZ ARC' from Navision into that file.
Now my question is how to do that?
Thanks In Advance
Regards,
Mrinmay
i want to know how to modify the content of a text file from Navision. let me explain bit more....suppose 1 text file is there in c drive in client system called "test.txt". In that text file only one name is there for example ' XYZ ABC'.
Now i want to change the name as 'XMZ ARC' from Navision into that file.
Now my question is how to do that?
Thanks In Advance
Regards,
Mrinmay
0
Comments
-
Search rename function in the F1 -online help of navision.
If you are on RTC, also remember that you have to search also for UPLOAD and DOWLOAD functions: you have to upload the file on service tier in order to be able to rename it, and then download it on the client.
EDIT: :-k i don't know if the file is renamed, or a new file with the new name is created...i've never done this... :-k0 -
i Think rename will rename the file name. but i want to modify the content of the file. i want to do it from cassic client ony.
i have written code like below:
File1.TEXTMODE(TRUE);
File1.WRITEMODE(TRUE);
File1.OPEN('D:\Test.txt');
File1.SEEK(1);
File1.WRITE('P');
File1.CLOSE;
Note: Content of Test.txt is 'XYZ ABC' i want it 'XPY ABC'
But it is not working properly. After running the code in file it coming like
P
ABC
what to do so that after running it will give : XPY ABC0 -
try TEXTMODE(FALSE). If you use TEXTMODE true, each WRITE is creating new line. If using binary mode, exactly what you use in the parameter is written into the file.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions