I have successfully load a dynamic array reading the numbers in a text file into form. But how can I save that array again into text file after I change some numbers.
perumar
-2
Newbie Poster
Recommended Answers
Jump to PostIf your dynamic array is integer then,
Dim a() As Integer = {11, 22, 33, 44} System.IO.File.WriteAllLines("file.txt", Array.ConvertAll(a, New Converter(Of Integer, String)(Function(t As Integer) t.ToString())))
For string array,
Dim S() as String={"10","20"} System.IO.File..WriteAllLines("file.txt", S)
All 3 Replies
sknake
1,622
Senior Poster
Featured Poster
kvprajapati
1,826
Posting Genius
Team Colleague
serkan sendur
commented:
reputationCallBack(serkan)
+9
CodeDoctor
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.