choose the position to write in a text file?

tiagofrancistiagofrancis Member Posts: 48
How can i choose the position to write in a text file?

e.g

i wanto start writing at position 10 of the line, and then in the 15 position..

Thanks in advance

Comments

  • kinekine Member Posts: 12,562
    1) You are creating the file?
    2) What will be between these positions?
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • nunomaianunomaia Member Posts: 1,153
    How can i choose the position to write in a text file?

    e.g

    i wanto start writing at position 10 of the line, and then in the 15 position..

    Thanks in advance

    Can you explain better?
    Nuno Maia

    Freelance Dynamics AX
    Blog : http://axnmaia.wordpress.com/
  • bappaditya44bappaditya44 Member Posts: 14
    use the function SEEK

    file.SEEK(<Position you want to set>)
  • kinekine Member Posts: 12,562
    use the function SEEK

    file.SEEK(<Position you want to set>)

    Yes, but you need to have the file first to do the seek. If this is case of creating the file in "Fixed Format", this is not good way how to do that...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • BeliasBelias Member Posts: 2,998
    why don't write the file as usual, but adding 15 spaces before every line?
    :shock:
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
Sign In or Register to comment.