p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
VB How-To Ask your "How do I do this with VB?" questions in this forum.

Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 16th, 2004, 07:42 AM
Registered User
Points: 26, Level: 1
Points: 26, Level: 1 Points: 26, Level: 1 Points: 26, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2003
Location: , , United Kingdom.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Reading ASCII data from text file.

I am having a problem with reading ASCII text from a text document. I have a document with a random piece of writing in, and i have tried using Input and Line Input. I load the text into a string, then carry out the rest of my code, which prints the new data of the same length (old data but encrypted) back to the file. When i try to run the encrypted data back through the code, only half of the data is loaded into hte string, for some reason, it stops at this character " ". That is the character after the last character loaded which is an underscore. The total length of the loaded information is 179 characters and it appears to have been written back to the text file in four lines rather than 1 long one. If anybody could enlighten me as to what the problem may be i would be extremely grateful. Thank you

-=-=-=-=-=-=-=-=-=-
LordBeholdeR
__________________
-=-=-=-=-=-=-=-=-=-
LordBeholdeR
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old June 25th, 2004, 02:32 AM
Authorized User
Points: 188, Level: 3
Points: 188, Level: 3 Points: 188, Level: 3 Points: 188, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2004
Location: Islamabad, Sindh, Pakistan.
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can you post your code ? . I think problem is there....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old June 25th, 2004, 06:50 PM
tnd tnd is offline
Authorized User
Points: 80, Level: 1
Points: 80, Level: 1 Points: 80, Level: 1 Points: 80, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2004
Location: , , .
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The problem is probably with your encrypted code. Probably one of the encrypted character is char(26) which is the eof marker so input and line input won't read past this character.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading Text file from Resource folder balesh.mind ASP.NET 3.5 Basics 1 November 14th, 2008 06:54 AM
Reading from a Text file for Login and Password.. zabzoub1 Pro Visual Basic 2005 2 July 4th, 2007 02:03 PM
Write ASCII text file muklee C# 1 December 12th, 2004 09:40 PM
Reading a Text File gmoney060 Classic ASP Basics 2 October 30th, 2004 02:43 AM
reading text file Regornil JSP Basics 2 October 27th, 2004 03:02 AM



All times are GMT -4. The time now is 04:39 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc