SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Jul 2009
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Issue in appending data to Text File

    Hi,
    I have an text file say test.txt which contains data and variables

    I am creating modifiedtest.txt file in append mode

    I am reading data from test.txt line by line modifying it (Replacing some variables with values) and writing the line to modifiedtest.txt
    This works properly and writes expected data to modifiedtest.txt

    now i open modifiedtest.txt file in read mode and try to read it line by line.Its not reading data properly (It encounters some special characters in first line)

    What can i do to read modifiedtext.txt file.

  2. #2
    Member
    Join Date
    Oct 2003
    Location
    Norfolk, VA
    Posts
    360
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Issue in appending data to Text File

    Can you paste in relevant code?
    A good rule of thumb is to never measure with your thumb.

  3. #3
    Senior Member
    Join Date
    May 2008
    Posts
    135
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Issue in appending data to Text File

    read line by line and try to print the first line by msgbox, and see what you get in that.

  4. #4
    Junior Member
    Join Date
    Jul 2009
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Issue in appending data to Text File

    It displays special characters which i cant describe but something unusual.

    I tried out it with other way..

    I am creating modifiedtest.txt file in Write mode
    Writing first line
    Closing modifiedtest.txt
    open in append mode
    Write rest data

    But even this also do not work

    It writes first line properly and then writes square boxex in file

    Thanks
    Jyoti

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 05:49 AM.

Copyright BetaSoft Inc.