Newsgroup: it.comp.lang.visual-basic
Titolo: file di testo

ciao a tutti,
    devo gestire un semplice file di testo con Visual basic 2005
aprirlo leggerlo scriverci chiuderlo
mi sapete dire dove posso trovare un'esempio ?
grazie mille


Classi:
System.IO.StreamReader (per leggere file)
e
System.IO.StreamWriter (per scrivere file)
e
http://tinyurl.com/mwmg8
Good luck ;)
Bye,
-- 
Carmine ( 
pikachu...@gmail.com
 (Togli la scritta NOSPAM) )
Webmaster di The Total Site 4 : 
http://www.thetotalsite.it
MariokartDS Codice Amico: 532639027909 - CarmineC in MarioKartDS
"Un problema non č un problema se puņ essere risolto" 


'lettura
dim sContenutoFile as 
string=My.Computer.FileSytem.ReadAllText("c:\file.txt")
'scrittura
My.Computer.FileSytem.WriteAllText("c:\file.txt",sContenutoFile,False)
Visto che ci sei, esplora il namespace My...
Ciao
-- 
Gianluca Cannalire
Microsoft MVP/MCP - Visual Basic
http://www.visual-basic.it
http://community.visual-basic.it/gianluca
 

 Ciao
queste cose le dice a learn & get...
ciao, a.
gianluca, grazie, fanno due caffe' + brioche alla panna, o, a scelta, la 
giornata sui db :)
vs2005 mi propone sqlserver. sul pc nuovo l'ho installato, ma non so piu' 
quale e dove :> e davvero non ho nemmeno il tempo di cercarlo...

 piu' quale e dove :> e davvero non ho nemmeno il tempo di cercarlo...
VS 2005 installa SQL Express 2005 (una named istance) che, come MSDE non 
ha interfaccia grafica.
Il nome dell'istanza è SQLEXPRESS e quindi ci accedi con ".\SQLEXPRESS" o 
"nomemacchina\SQLEXPRESS"
Per il resto , vai a questo link e troverai:
http://tinyurl.com/h4fyf
SQL Server Express Edition with SP1 (SQLEXPR.EXE)
SQL Server 2005 Express Edition (SQL Server Express) is a powerful and 
reliable data management product that delivers rich features, data 
protection, and performance for embedded application clients, light Web 
applications, and local data stores. Designed for easy deployment and 
rapid prototyping, SQL Server Express is available at no cost, and you are 
free to redistribute it with applications. If you need more advanced 
database features, then SQL Server Express can be seamlessly upgraded to 
more sophisticated versions of SQL Server.
SQL Server Express Edition with Advanced Services (SQLEXPR_ADV.EXE)
SQL Server 2005 Express Edition with Advanced Services is a new, free 
version of SQL Server Express that includes additional features for 
reporting and advanced text based searches. In addition to the features 
offered in SQL Server 2005 Express Edition, SQL Server Express with 
Advanced Services offers additional components that include SQL Server 
Management Studio Express (SSMSE), support for full-text catalogs, and 
support for viewing reports via report server. SQL Server Express Edition 
with Advanced Services also includes SP1.
SQL Server Express Edition Toolkit (SQLEXPR_TOOLKIT.EXE)
SQL Server 2005 Express Edition Toolkit (SQL Server Express Toolkit) 
provides tools and resources to manage SQL Server Express and SQL Server 
Express Edition with Advanced Services. It also allows creating reports by 
using SQL Server 2005 Reporting Services (SSRS).
SQL Server Management Studio Express (SQLServer2005_SSMSEE.msi)
SQL Server Management Studio Express (SSMSE) provides a graphical 
management tool for managing SQL Server 2005 Express Edition and SQL 
Server 2005 Express Edition with Advanced Services instances. SSMSE can 
also manage relational engine instances created by any edition of SQL 
Server 2005. SSMSE cannot manage Analysis Services, Integration Services, 
SQL Server 2005 Mobile Edition, Notification Services, Reporting Services, 
or SQL Server Agent
Ciao!
