question

Metox-2764 avatar image
0 Votes"
Metox-2764 asked XingyuZhao-MSFT commented

Problem with open file function

Hello. I have problem with open file function, I learned visual basic in the school and I use this type of function Open “C:\test.txt“ For Input As #1 but when I run the program the error is syntax error.![81599-problem.jpg][1] [1]: /answers/storage/attachments/81599-problem.jpg

dotnet-visual-basic
problem.jpg (9.3 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @Metox-2764 ,
If you need more help with vb6, try asking the question in VB6 Forum.


0 Votes 0 ·
Castorix31 avatar image
0 Votes"
Castorix31 answered

This is VB6 code

In .NET, see all MSDN samples
File.Open
How to: Read text from a file
etc...


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Viorel-1 avatar image
0 Votes"
Viorel-1 answered

Try using simple quotation marks: ".

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.