HOW TO: Create A Text File With .PRN Extension

Hi,

I want to create a simple program that could create a text file who's extension is .prn. The problem is, I don't know how to do it in Visual Basic Express. Anybody here can show me a sample code on how to solve this issue

Thanks:)



Answer this question

HOW TO: Create A Text File With .PRN Extension

  • Matthew42

    Dim a as string = "Nice weather......"

    My.computer.filesystem.writealltext("file.prn,a,false)



  • pfd

    Thanks, it help me a lot:)


  • HOW TO: Create A Text File With .PRN Extension