How to add values to existing Text file in NAV ?
chandrurec
Member Posts: 560
Hi all,
I have created a text file named CustomerInfo.txt.
After this I want to add some more information to this text file in the second line.
Is this possible to append information to the already created text file in navision?
If possible, kindly send me the code snippet which will be used to achieve this
Thanks in advance.
Regards,
chandru.
I have created a text file named CustomerInfo.txt.
After this I want to add some more information to this text file in the second line.
Is this possible to append information to the already created text file in navision?
If possible, kindly send me the code snippet which will be used to achieve this
Thanks in advance.
Regards,
chandru.
0
Comments
-
You'll have to reread the whole file. After reading a line, you can modify the variable containing the contents of the line and write that variable back to a new file CustomerInfo2.txt.
After reading the whole file CustomerInfo.txt, and after writing all lines (with eventually modified data) to the new file CustomerInfo2.txt you can then delete CustomerInfo.txt and rename CustomerInfo2.txt to CustomerInfo.txt.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
try this
CF := 10; fle.TEXTMODE := TRUE; fle.WRITEMODE := TRUE; fle.OPEN('C:\CustomerInfo.txt'); fle.SEEK(fle.LEN); fle.WRITE(CF); fle.WRITE('2nd Line'); fle.CLOSE;0 -
Hi all,
I am upgrading 3.7B to NAV2013.
We have a number of processing reports that we used to either create or append to the end of an existing file (depending on whether the file exists at the time the report is run).
In 2013 (Windows client), can i still do this, or do I have to further complicate it as Luc suggests, uploading the existing file, appending, and then downloading again?
I have a lot of experience with this on our old version, but the 3 tier is messing with me!kind of fell into this...0 -
this was actually easier than I was making it out to be. The network share where we keep the file in question needed to grant permissions to the service tier account. I was then able to open and append the file without either UPLOAD or DOWNLOAD requirements. More testing to follow, but it seems like I'm back on track. Thanks!kind of fell into this...0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 328 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


