עבודה עם קבצי טקסט

n o o n e1

New member
עבודה עם קבצי טקסט

שלום, אני צריך לקרוא רשומות מקובץ טקסט לתוך טבלה כלשהי בטופס. אני צריך לתמוך בפעולות כמו הוספה, עדכון ומחיקה של רשומות. השאלה שלי עם אפשר להשתמש עם grid כלשהו או שאם לא אז עם איזה פקד כדאי להשתמש? אני מדגיש שאני בכוונה לא עובד עם קבצי DB. בתודה מראש
 

liortm

New member
קריאה מקובץ טקסט

dim intFreeFile as integer dim strLine as string dim strSomePath as string intFreeFile=FreeFile open strSomePath for input as #intFreeFile while not eof(intFreeFile) line input #intFreeFile,strLine 'do with strLine what ever you want wend close #intFreeFile​
 
למעלה