Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Here's another....file I/O difficulties.
#2
Code:
DIM Filename,KeyString,RealText,CipherText AS STRING
DIM F,FilePos,I,I2 AS INTEGER
Only CipherText is DIMed as a string. The rest are integers. Change those to,
Code:
DIM as string Filename, KeyString, RealText, CipherText
DIM as integer F, FilePos, I, I2
and you should be fine.

This is another reason why
1. You should avoid multiple declarations (DIMs) on one line.
2. Declare variables only when you immediately need them, ie., not all at once at the top of the program.

Post again if you have any more troubles.
stylin:
Reply


Messages In This Thread
Here's another....file I/O difficulties. - by stylin - 01-09-2006, 10:44 PM
Here's another....file I/O difficulties. - by Anonymous - 01-10-2006, 01:26 PM
Here's another....file I/O difficulties. - by DrV - 01-16-2006, 03:08 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)