ESP32 reading file from SD card
ESP32 reading file from SD card
In this tutorial we will check how to connect the ESP32 to a SD card and read a file from it.
(more…)
View On WordPress
seen from South Korea
seen from China
seen from United States
seen from United States
seen from China
seen from United States

seen from Denmark
seen from United States

seen from Türkiye
seen from Russia

seen from Malaysia
seen from China
seen from United States

seen from Malaysia
seen from United States

seen from United States

seen from United States

seen from Singapore
seen from T1
seen from Germany
ESP32 reading file from SD card
ESP32 reading file from SD card
In this tutorial we will check how to connect the ESP32 to a SD card and read a file from it.
(more…)
View On WordPress
File reader generator
def loadZips(): #returns a list with all the ZIPs with open("zips.txt") as f: for line in f: yield (line.rstrip()) zips=loadZips()
Then use zips as any other iterable
C# 매우 간단한 file 내용 읽기
File class에 ReadAllText란 멤버함수가 있다. 간단히 filename만 넣어주면 모든 내용을 읽어들여 string으로 날려주고 Encoding 선택도 가능. 예를 들어서
string text = File.ReadAllText("test.txt", Encoding.UTF8);
이라고 호출하면 끝. 일반적으로 File pointer나 객체 만들면서 file 열고 file 끝날 때 까지 한 줄씩 읽어들여서 붙여넣기 했었는데 매우 간단함.